svn commit: r569692 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java

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

svn commit: r569692 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java

jaz-3
Author: jaz
Date: Sat Aug 25 09:02:19 2007
New Revision: 569692

URL: http://svn.apache.org/viewvc?rev=569692&view=rev
Log:
fixed default-value which was using the string instead of the converted object

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java?rev=569692&r1=569691&r2=569692&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java Sat Aug 25 09:02:19 2007
@@ -370,7 +370,7 @@
                 ModelParam param = (ModelParam) i.next();
                 if ("INOUT".equals(param.mode) || mode.equals(param.mode)) {
                     if (param.defaultValue != null && context.get(param.name) == null) {
-                        context.put(param.name, param.defaultValue);
+                        context.put(param.name, param.defaultValueObj);
                         Debug.log("Set default value for parameter: " + param.name, module);
                     }
                 }