details:   /erp/devel/pi/rev/674b4882a83c
changeset: 11512:674b4882a83c
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Tue Apr 05 19:04:52 2011 +0200
summary:   Related to issue 16647. User profile widget will also work when 
initial role has no warehouses

diffstat:

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

diffs (14 lines):

diff -r d650f1f3ff3d -r 674b4882a83c 
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
        Mon Apr 04 17:54:51 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-user-profile-widget.js
        Tue Apr 05 19:04:52 2011 +0200
@@ -274,7 +274,9 @@
             }
           }
         }
-        roleForm.getItem('warehouse').moveToFirstValue();
+        if(roleForm.getItem('warehouse').getClientPickListData().length > 0){
+          roleForm.getItem('warehouse').moveToFirstValue();
+        }
       },
       
       // call the server to save the information

------------------------------------------------------------------------------
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