details: https://code.openbravo.com/erp/devel/pi/rev/cca2f611232d
changeset: 21436:cca2f611232d
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Wed Nov 13 14:01:03 2013 +0530
summary: Fixes Issue 0025131: Not possible to enter numeric values in some
fields if they are used in a display logic
There may be cases if the value is an number within 10 digits, it is identified
as an UUID.
In that case check is done to confirm whether it is indeed UUID by checking if
it is available in the valueMap.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e3a8f5f3ca3b -r cca2f611232d
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
Tue Nov 12 11:00:33 2013 +0530
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
Wed Nov 13 14:01:03 2013 +0530
@@ -193,7 +193,8 @@
this.valueMap = {};
this.valueMap[value] = '';
return '';
- } else if (!this.valueMap[value] && OB.Utilities.isUUID(value)) {
+ } //there may be cases if the value is an number within 10 digits, it is
identified as an UUID. In that case check is done to confirm whether it is
indeed UUID by checking if it is available in the valueMap.
+ else if (!this.valueMap[value] && OB.Utilities.isUUID(value) &&
this.valueMap.hasOwnProperty(value)) {
return '';
}
}
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits