fixes issue 25686: Selectors with out fields are not working properly
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 13 Feb 2014 17:23:11 +0100
changeset 22016 99858c127329
parent 22015 70df6ccc76b2
child 22017 af9e83d05902
child 22299 162d8aefb9f2
fixes issue 25686: Selectors with out fields are not working properly
in pick and execute windows
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
--- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js	Thu Feb 13 21:21:28 2014 +0530
+++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js	Thu Feb 13 17:23:11 2014 +0100
@@ -666,6 +666,7 @@
     }
 
     fields = form.fields || grid.fields;
+    form.hiddenInputs = form.hiddenInputs | {};
     for (i in outFields) {
       if (outFields.hasOwnProperty(i)) {
         if (outFields[i].suffix) {
@@ -997,6 +998,7 @@
         form = this.form,
         grid = this.grid,
         item, value, fields = form.fields || grid.fields;
+    form.hiddenInputs = form.hiddenInputs | {};
     for (i in outFields) {
       if (outFields.hasOwnProperty(i)) {
         if (outFields[i].suffix) {