svn commit: r672188 - /ofbiz/branches/release4.0/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: r672188 - /ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

jleroux@apache.org
Author: jleroux
Date: Fri Jun 27 01:33:34 2008
New Revision: 672188

URL: http://svn.apache.org/viewvc?rev=672188&view=rev
Log:
Applied fix from trunk for revision: 672187

Modified:
    ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

Modified: ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java?rev=672188&r1=672187&r2=672188&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java (original)
+++ ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java Fri Jun 27 01:33:34 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) {