Author: jacopoc
Date: Sun Nov 8 19:31:49 2009
New Revision: 833916
URL:
http://svn.apache.org/viewvc?rev=833916&view=revLog:
Fixed bug that was preventing the recursive algorithm to work properly.
Modified:
ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java
Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java?rev=833916&r1=833915&r2=833916&view=diff==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java Sun Nov 8 19:31:49 2009
@@ -127,12 +127,12 @@
}
if (childTypeValue != null) {
if (parentType.equals(childTypeValue.getString(primaryKey))) return true;
-
+
if (childTypeValue.getString(parentTypeField) != null) {
if (parentType.equals(childTypeValue.getString(parentTypeField))) {
return true;
} else {
- hasParentType(delegator, entityName, primaryKey, childTypeValue.getString(parentTypeField), parentTypeField, parentType);
+ return hasParentType(delegator, entityName, primaryKey, childTypeValue.getString(parentTypeField), parentTypeField, parentType);
}
}
}