Fixed: Template edit are not working correctly
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
@@ -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
}
}
