svn commit: r496193 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r496193 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java

jonesde
Author: jonesde
Date: Sun Jan 14 15:47:48 2007
New Revision: 496193

URL: http://svn.apache.org/viewvc?view=rev&rev=496193
Log:
Changed FreeMarkerWorker to remove entry named null from context before processing the template with it

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java?view=diff&rev=496193&r1=496192&r2=496193
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java Sun Jan 14 15:47:48 2007
@@ -167,9 +167,11 @@
         
         // 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);
     }