svn commit: r1355798 - /ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java

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

svn commit: r1355798 - /ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java

erwan
Author: erwan
Date: Sat Jun 30 19:16:17 2012
New Revision: 1355798

URL: http://svn.apache.org/viewvc?rev=1355798&view=rev
Log:
in minilang context when coming from screen, only parameters were initialized, env was'nt populated with other context entries

Modified:
    ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java

Modified: ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java?rev=1355798&r1=1355797&r2=1355798&view=diff
==============================================================================
--- ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java (original)
+++ ofbiz/branches/20120329_portletWidget/framework/minilang/src/org/ofbiz/minilang/method/MethodContext.java Sat Jun 30 19:16:17 2012
@@ -73,7 +73,11 @@ public class MethodContext implements It
         this.methodType = MethodContext.SERVICE;
         Map<String, Object> parametersCtx = UtilGenerics.checkMap(context.get("parameters"));
         this.parameters = UtilMisc.makeMapWritable(parametersCtx);
-        //putAllEnv(context);
+        for (Map.Entry<String, ? extends Object> entry : context.entrySet()) {
+            if (! "parameters".equals(entry.getKey())) {
+                this.putEnv(entry.getKey(), entry.getValue());
+            }
+        }
         loadThis(ctx, context, null);
     }