Changed FreeMarkerWorker to remove entry named null from context before processing the template with it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -167,9 +167,11 @@ public class FreeMarkerWorker {
|
||||
|
||||
// add the OFBiz transforms/methods
|
||||
addAllOfbizTransforms(context);
|
||||
|
||||
// make sure there is no "null" string in there as FreeMarker will try to use it
|
||||
context.remove("null");
|
||||
|
||||
// process the template with the given data and write
|
||||
// the email body to the String buffer
|
||||
// process the template with the given data
|
||||
template.process(context, outWriter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user