svn commit: r1226065 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java

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

svn commit: r1226065 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java

jleroux@apache.org
Author: jleroux
Date: Sat Dec 31 11:37:23 2011
New Revision: 1226065

URL: http://svn.apache.org/viewvc?rev=1226065&view=rev
Log:
This completes "Null values are not synchronized in http mode" https://issues.apache.org/jira/browse/OFBIZ-4602

And I better understand Patrick's answer to the issue now...

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java?rev=1226065&r1=1226064&r2=1226065&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java Sat Dec 31 11:37:23 2011
@@ -461,7 +461,7 @@ public class GenericEntity extends Obser
         }
 
         boolean isNullString = false;
-        if ("null".equals(value)) {
+        if ("null".equals(value) || "[null-field]".equals(value)) {
             // count this as a null too, but only for numbers and stuff, not for Strings
             isNullString = true;
         }