details: https://code.openbravo.com/erp/devel/pi/rev/04194ede4e76
changeset: 13850:04194ede4e76
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed Sep 28 07:45:17 2011 +0200
summary: Fixes issue 18626: Null numeric fields cannot be saved in grid
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
| 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r f2a4f4808579 -r 04194ede4e76
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
Wed Sep 28 07:33:21 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
Wed Sep 28 07:45:17 2011 +0200
@@ -444,7 +444,7 @@
// Use our custom validator for float and integers
isc.OBNumberItem.validateCondition = function(item, validator, value){
- var ret, type;
+ var undef, ret, type;
if (!item.typeInstance) {
// this happens when data is validated which is returned from the system
@@ -452,6 +452,10 @@
return true;
}
+ if (value === null || value === undef) {
+ return true;
+ }
+
if (item.allowMath && isc.isA.String(value) && value.indexOf('=') === 0) {
value = String('') + item.evalMathExpression(value);
}
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits