Fixes Issue 25431: The linked items on a partner -customer- is showing incorrect links
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Tue, 18 Mar 2014 11:30:18 +0530
changeset 22719 5b72cc2f9c66
parent 22717 8f8910c3f90c
child 22720 c84042acbfab
Fixes Issue 25431: The linked items on a partner -customer- is showing incorrect links

params._filterByParentProperty is set only if view contains parentProperty.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Mar 18 11:04:49 2014 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Mar 18 11:30:18 2014 +0530
@@ -2002,7 +2002,7 @@
 
       // this mode means that no parent is selected but the parent needs to be
       // determined from the target record and the parent property
-      if (this.isOpenDirectMode && this.view.parentView) {
+      if (this.view.parentProperty && this.isOpenDirectMode && this.view.parentView) {
         params._filterByParentProperty = this.view.parentProperty;
       }