Related to issue 19273: Different criteria when saving records that contains entities that don't belong to the org tree
authorMartin Taal <martin.taal@openbravo.com>
Wed, 14 Dec 2011 11:29:24 +0100
changeset 14875 61149227461b
parent 14874 6bff3ff6bff1
child 14876 439027d73f6b
Related to issue 19273: Different criteria when saving records that contains entities that don't belong to the org tree
build.xml
src/org/openbravo/dal/core/OBInterceptor.java
--- a/build.xml	Wed Dec 14 11:23:22 2011 +0100
+++ b/build.xml	Wed Dec 14 11:29:24 2011 +0100
@@ -100,7 +100,7 @@
   <property name="friendlyWarnings" value="false"/>
   <property name="checkTranslationConsistency" value="true"/>
   <property name="buildValidation" value="true"/>
-  <property name="disableCheckReferencedOrganizations" value="true"/>
+  <property name="disableCheckReferencedOrganizations" value="false"/>
 
   <available file=".hg" property="is.hg" />
 
--- a/src/org/openbravo/dal/core/OBInterceptor.java	Wed Dec 14 11:23:22 2011 +0100
+++ b/src/org/openbravo/dal/core/OBInterceptor.java	Wed Dec 14 11:29:24 2011 +0100
@@ -225,11 +225,13 @@
     doEvent(entity, currentState, propertyNames);
 
     // also check for new records
-    if (disableCheckReferencedOrganizations.get() == null
-        || !disableCheckReferencedOrganizations.get()) {
-      checkReferencedOrganizations(entity, currentState, new Object[currentState.length],
-          propertyNames);
-    }
+    // commented out for now, re-apply in MP9
+    // see issue https://issues.openbravo.com/view.php?id=19273
+    // if (disableCheckReferencedOrganizations.get() == null
+    // || !disableCheckReferencedOrganizations.get()) {
+    // checkReferencedOrganizations(entity, currentState, new Object[currentState.length],
+    // propertyNames);
+    // }
 
     boolean listenerResult = false;
     if (getInterceptorListener() != null) {