details:   https://code.openbravo.com/erp/devel/pi/rev/72cc3b54fc80
changeset: 22909:72cc3b54fc80
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Thu Apr 24 18:29:40 2014 +0200
summary:   Fixes issue 25727: Selectors are not working properly in P&E windows

The problem was that the edit value of product$identifier was not being set 
properly. This did not affect standard grids, only P&E grids.

To fix this, it is made sure that if this value is null, it is set with the 
proper identifier.

diffstat:

 
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
 |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 49791985066f -r 72cc3b54fc80 
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 Apr 24 14:03:37 2014 +0200
+++ 
b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
      Thu Apr 24 18:29:40 2014 +0200
@@ -641,6 +641,10 @@
       this.storeValue(record[this.valueField]);
       this.form.setValue(this.name + OB.Constants.FIELDSEPARATOR + 
this.displayField, record[this.displayField]);
       this.form.setValue(identifierFieldName, record[OB.Constants.IDENTIFIER]);
+      // make sure the identifier is not null in the grid. See issue 
https://issues.openbravo.com/view.php?id=25727
+      if (this.form.grid && this.form.grid.getEditValues(0) && 
!this.form.grid.getEditValues(0)[this.name + OB.Constants.FIELDSEPARATOR + 
this.displayField]) {
+        this.form.grid.setEditValue(this.form.grid.getEditRow(), this.name + 
OB.Constants.FIELDSEPARATOR + this.displayField, 
record[OB.Constants.IDENTIFIER]);
+      }
       if (!this.valueMap) {
         this.valueMap = {};
       }

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to