Author: doogie
Date: Mon Sep 14 17:04:44 2009
New Revision: 814734
URL:
http://svn.apache.org/viewvc?rev=814734&view=revLog:
Applied fix from trunk for revision: 814731
Modified:
ofbiz/branches/release4.0/ (props changed)
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java
Propchange: ofbiz/branches/release4.0/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Sep 14 17:04:44 2009
@@ -1 +1 @@
-/ofbiz/trunk:539836-539837,618970,627900,629279,674173,676162,676227,676246,679704,690644,705862,706035,706055,706067,706692,721839,721887,728935,737443,738870,741491,808792
+/ofbiz/trunk:539836-539837,618970,627900,629279,674173,676162,676227,676246,679704,690644,705862,706035,706055,706067,706692,721839,721887,728935,737443,738870,741491,808792,814731
Modified: ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java?rev=814734&r1=814733&r2=814734&view=diff==============================================================================
--- ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java (original)
+++ ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java Mon Sep 14 17:04:44 2009
@@ -113,8 +113,8 @@
}
public boolean entityMatches(GenericEntity entity, EntityCondition lhs, EntityCondition rhs) {
- if (lhs.entityMatches(entity)) return shortCircuitValue;
- if (rhs.entityMatches(entity)) return shortCircuitValue;
+ if (lhs.entityMatches(entity) == shortCircuitValue) return shortCircuitValue;
+ if (rhs.entityMatches(entity) == shortCircuitValue) return shortCircuitValue;
return !shortCircuitValue;
}
@@ -127,8 +127,8 @@
}
public boolean mapMatches(GenericDelegator delegator, Map map, Object lhs, Object rhs) {
- if (((EntityCondition) lhs).mapMatches(delegator, map)) return shortCircuitValue;
- if (((EntityCondition) rhs).mapMatches(delegator, map)) return shortCircuitValue;
+ if (((EntityCondition) lhs).mapMatches(delegator, map) == shortCircuitValue) return shortCircuitValue;
+ if (((EntityCondition) rhs).mapMatches(delegator, map) == shortCircuitValue) return shortCircuitValue;
return !shortCircuitValue;
}