Author: jaz
Date: Sat Aug 25 09:02:19 2007
New Revision: 569692
URL:
http://svn.apache.org/viewvc?rev=569692&view=revLog:
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);
}
}