Fixed bug 38039: Inconsistent organization filtering in process selectors.
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Fri, 16 Mar 2018 09:22:05 +0100
changeset 33699 1ed089db27e7
parent 33698 305d3e3c2b9a
child 33700 57d94fae1907
child 33701 5323533018b6
Fixed bug 38039: Inconsistent organization filtering in process selectors.

Pick-and-execute grids does not add their standardProperties in the context
info, causing a wrong behavior in selectors not filtering by organization.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Fri Mar 16 09:13:27 2018 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Fri Mar 16 09:22:05 2018 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011-2017 Openbravo SLU
+ * All portions are Copyright (C) 2011-2018 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -921,6 +921,7 @@
       return;
     }
     contextInfo = isc.addProperties({}, this.view.parentWindow.activeView.getContextInfo(false, true, true, true));
+    isc.addProperties(contextInfo, this.viewProperties.standardProperties);
     record = isc.addProperties({}, this.getRecord(rowNum), this.getEditValues(rowNum));
     fields = this.viewProperties.fields;
     len = fields.length;