details:   https://code.openbravo.com/erp/devel/pi/rev/622a073cbc4d
changeset: 13788:622a073cbc4d
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Sun Sep 18 22:42:26 2011 +0200
summary:   Fixes issue 18549: After entering new organizations the user profile 
flyout does not open
length variable was used twice, corrected this

diffstat:

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

diffs (21 lines):

diff -r 475ffebb70ff -r 622a073cbc4d 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js
 Sat Sep 17 18:21:21 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js
 Sun Sep 18 22:42:26 2011 +0200
@@ -273,14 +273,14 @@
         }
       },
       setWarehouseValueMap: function() {
-        var i, j, warehouseOrg, role, roleId, length, 
+        var i, j, warehouseOrg, role, roleId, roleLength, length, 
           orgId = roleForm.getItem('organization').getValue();
         if (!orgId) {
           return;
         }
-        length = roleForm.localFormData.role.roles.length;
+        roleLength = roleForm.localFormData.role.roles.length;
         roleId = roleForm.getValue('role');
-        for (i = 0; i < length; i++) {
+        for (i = 0; i < roleLength; i++) {
           role = roleForm.localFormData.role.roles[i];
           if (role.id === roleId) {
             length = role.warehouseOrgMap.length;

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to