Author: doogie
Date: Sun Jun 26 18:07:44 2011
New Revision: 1139856
URL:
http://svn.apache.org/viewvc?rev=1139856&view=revLog:
FIX: When the rhs was an EntityFieldValue, the wrong model field was being
checked(it was checking the left field).
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java?rev=1139856&r1=1139855&r2=1139856&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java Sun Jun 26 18:07:44 2011
@@ -263,7 +263,7 @@ public class EntityExpr extends EntityCo
} else if (value instanceof EntityFieldValue) {
EntityFieldValue efv = (EntityFieldValue) this.lhs;
String rhsFieldName = efv.getFieldName();
- ModelField rhsField = modelEntity.getField(fieldName);
+ ModelField rhsField = modelEntity.getField(rhsFieldName);
if (rhsField == null) {
throw new IllegalArgumentException("FieldName " + rhsFieldName + " not found for entity: " + modelEntity.getEntityName());
}