You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2009/11/08 20:31:49 UTC

svn commit: r833916 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java

Author: jacopoc
Date: Sun Nov  8 19:31:49 2009
New Revision: 833916

URL: http://svn.apache.org/viewvc?rev=833916&view=rev
Log:
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);
                 }
             }
         }