From f5556274fca02c4e95805960edc3cb4e29cb5e81 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Wed, 3 Dec 2014 07:17:12 +0000 Subject: [PATCH] OFBIZ-5896 This commits fixes a regression I introduced with rev. 1635232 (this actually reverts that commit) and provides a different and better fix for the error affecting the "Did you know?" screenlet. ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod was not using the passed contentId in condition list, and also was not using the ContentAssocDataResourceViewFrom/To view entity to get the result. Thanks to Deepak Dixit for the patch. Misc minor cleanups (removed commented out code) and some small formatting fixes. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1643061 13f79535-47bb-0310-9956-ffa450edef68 --- cmssite/data/CmsSiteDemoData.xml | 18 ++++++------- cmssite/template/cms/MainDecorator.ftl | 3 +-- .../data/DemoWebSitePublishPointData.xml | 26 +++++++++---------- .../script/org/ofbiz/ecommerce/data/topic.ftl | 2 +- 4 files changed, 24 insertions(+), 25 deletions(-) diff --git a/cmssite/data/CmsSiteDemoData.xml b/cmssite/data/CmsSiteDemoData.xml index 35cd7c6a7..92032fce4 100644 --- a/cmssite/data/CmsSiteDemoData.xml +++ b/cmssite/data/CmsSiteDemoData.xml @@ -101,7 +101,7 @@ under the License. - + @@ -114,7 +114,7 @@ under the License. - + @@ -130,16 +130,16 @@ under the License. - + - + - + @@ -194,7 +194,7 @@ under the License. - + @@ -219,8 +219,8 @@ under the License. - - - + + + diff --git a/cmssite/template/cms/MainDecorator.ftl b/cmssite/template/cms/MainDecorator.ftl index 5bc6abed3..2016bc987 100644 --- a/cmssite/template/cms/MainDecorator.ftl +++ b/cmssite/template/cms/MainDecorator.ftl @@ -16,11 +16,10 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> -<#if decoratedContent??> + ${(decoratedContent.subcontent.htmlHead)?default((thisContent.subcontent.htmlHead)!)} ${(decoratedContent.subcontent.header)?default((thisContent.subcontent.header)!)} ${decoratedContent} ${(decoratedContent.subcontent.footer)?default((thisContent.subcontent.footer)!)} - \ No newline at end of file diff --git a/ecommerce/data/DemoWebSitePublishPointData.xml b/ecommerce/data/DemoWebSitePublishPointData.xml index bc0d71339..587a0f49b 100644 --- a/ecommerce/data/DemoWebSitePublishPointData.xml +++ b/ecommerce/data/DemoWebSitePublishPointData.xml @@ -25,39 +25,39 @@ under the License. - + - + - + - + - + - + - + - + - + - + - + @@ -79,7 +79,7 @@ under the License. - @@ -96,6 +96,6 @@ under the License. - diff --git a/ecommerce/script/org/ofbiz/ecommerce/data/topic.ftl b/ecommerce/script/org/ofbiz/ecommerce/data/topic.ftl index 32db3456b..333b94afa 100644 --- a/ecommerce/script/org/ofbiz/ecommerce/data/topic.ftl +++ b/ecommerce/script/org/ofbiz/ecommerce/data/topic.ftl @@ -34,7 +34,7 @@ under the License. <#assign firstPart=internalNameParts[0] /> <#assign nowStamp=Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()/> <#if firstPart == "WIDGETS"> - +