Author: jleroux
Date: Wed Sep 19 23:58:59 2007
New Revision: 577585
URL:
http://svn.apache.org/viewvc?rev=577585&view=revLog:
Applied fix from trunk for revision: 569692
Modified:
ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ModelService.java
Modified: ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ModelService.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ModelService.java?rev=577585&r1=577584&r2=577585&view=diff==============================================================================
--- ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ModelService.java (original)
+++ ofbiz/branches/release4.0/framework/service/src/org/ofbiz/service/ModelService.java Wed Sep 19 23:58:59 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);
}
}