details:   /erp/devel/pi/rev/c2b6db10ef3d
changeset: 11509:c2b6db10ef3d
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Tue Apr 05 18:22:57 2011 +0200
summary:   Related to issue 16647. Values will be set also when the user clicks 
on 'cancel' and opens it again

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-user-profile-widget.js
 |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r eaf0b035d622 -r c2b6db10ef3d 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-user-profile-widget.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-user-profile-widget.js
        Tue Apr 05 18:00:03 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-user-profile-widget.js
        Tue Apr 05 18:22:57 2011 +0200
@@ -208,6 +208,9 @@
         // note, need to make a copy of the initial values
         // otherwise they are updated when the form values change!
         roleForm.setValues(isc.addProperties({}, 
roleForm.localFormData.initialValues));
+        roleForm.setWarehouseValueMap();
+        //We set initial values again to set warehouse correctly
+        roleForm.setValues(isc.addProperties({}, 
roleForm.localFormData.initialValues));
         if(roleForm.getItem('warehouse').getClientPickListData().length > 0 &&
                 !roleForm.getItem('warehouse').getValue()){
             roleForm.getItem('warehouse').moveToFirstValue();

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to