Author: jleroux
Date: Mon Oct 9 12:23:04 2017
New Revision: 1811559
URL:
http://svn.apache.org/viewvc?rev=1811559&view=revLog:
Fixed: Template edit are not working correctly
(OFBIZ-9830)
Steps to recreate:
1. Go to ContentManager.
2. Go to Template.
3. Click Find, then click LEFTBAR in the search result.
4. Click Edit, then we get a error page.
Thanks: fumiyoshi.to
Modified:
ofbiz/ofbiz-framework/trunk/applications/content/groovyScripts/layout/EditSubContent.groovy
Modified: ofbiz/ofbiz-framework/trunk/applications/content/groovyScripts/layout/EditSubContent.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/groovyScripts/layout/EditSubContent.groovy?rev=1811559&r1=1811558&r2=1811559&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/groovyScripts/layout/EditSubContent.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/groovyScripts/layout/EditSubContent.groovy Mon Oct 9 12:23:04 2017
@@ -40,10 +40,8 @@ if (currentValue) {
ctx.rootDir = rootDir
// webSiteId and https need to go here, too
templateRoot.context = ctx
- out = new StringWriter()
currentValue.drDataTemplateTypeId = "NONE"
- DataResourceWorker.renderDataResourceAsText(delegator, dataResourceId, out, templateRoot, locale, null, false)
- textData = out.toString()
+ textData = DataResourceWorker.renderDataResourceAsText(dispatcher, delegator, dataResourceId, templateRoot, locale, null, false)
context.textData = textData
}
}