svn commit: r672187 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

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

svn commit: r672187 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

jleroux@apache.org
Author: jleroux
Date: Fri Jun 27 01:32:16 2008
New Revision: 672187

URL: http://svn.apache.org/viewvc?rev=672187&view=rev
Log:
Fix a bug when emptying a field (blanking it)

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java?rev=672187&r1=672186&r2=672187&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java Fri Jun 27 01:32:16 2008
@@ -180,7 +180,11 @@
             }
             
             String fval = request.getParameter(field.getName());
-            if (fval != null && fval.length() > 0) {
+            if (fval != null && fval.length() <= 0) {
+                fval = null;
+            }
+            if (fval == null || fval.length() > 0) {
+
                 try {
                     findByEntity.setString(field.getName(), fval);
                 } catch (Exception e) {