You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2008/06/27 10:33:35 UTC

svn commit: r672188 - /ofbiz/branches/release4.0/framework/webtools/src/org/ofbiz/webtools/GenericWebEvent.java

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) {