Author: lektran
Date: Sat Sep 11 05:24:12 2010
New Revision: 996069
URL:
http://svn.apache.org/viewvc?rev=996069&view=revLog:
Fix for OFBIZ-3832, adding a forum entry causes an illegal argument exception. The problem was that one of the parameters passed to a Math.min(int, int) call was actually a String and the call-class-method doesn't attempt to convert arguments, it possibly should but I didn't change that here.
Modified:
ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml
Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml?rev=996069&r1=996068&r2=996069&view=diff==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentServices.xml Sat Sep 11 05:24:12 2010
@@ -979,6 +979,7 @@
<call-object-method method-name="length" obj-field="parameters.textData" ret-field="textDataLen"/>
<log level="info" message="textDataLen:${textDataLen}"/>
<property-to-field resource="forum" property="descriptLen" field="descriptLen"/>
+ <set field="descriptLen" from-field="descriptLen" type="Integer"/>
<log level="info" message="descriptLen:${descriptLen}"/>
<call-class-method method-name="min" class-name="java.lang.Math" ret-field="subStringLen">
<field field="textDataLen" type="int"/>