details: /erp/devel/pi/rev/42f99307aeae
changeset: 11737:42f99307aeae
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed Apr 27 20:18:59 2011 +0200
summary: Fixes issue 16900: Dates fields without a value give an error
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d292a7070318 -r 42f99307aeae
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Wed Apr 27 18:00:31 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Wed Apr 27 20:18:59 2011 +0200
@@ -1011,7 +1011,7 @@
validateOBDateItem: function(value){
var dateValue = OB.Utilities.Date.OBToJS(value, this.dateFormat);
var isValid = true;
- if (this.getValue() !== null && dateValue === null) {
+ if (this.getValue() && dateValue === null) {
isValid = false;
}
var isRequired = this.required;
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits