details: /erp/devel/pi/rev/3a776952d8dc
changeset: 12233:3a776952d8dc
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed May 18 17:11:39 2011 +0200
summary: Fixes issue 17243: All sections disappear except audit one if you
type wrongly a letter in a date field format. FF4
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
| 11 +++++++--
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 7b921a4dc6a2 -r 3a776952d8dc
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
Wed May 18 17:05:24 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
Wed May 18 17:11:39 2011 +0200
@@ -1462,13 +1462,18 @@
},
getCurrentValues: function(){
+ var ret;
if (this.isShowingForm) {
- return this.viewForm.getValues();
+ ret = this.viewForm.getValues();
} else if (this.isEditingGrid) {
- return isc.addProperties({}, this.viewGrid.getSelectedRecord(),
this.viewGrid.getEditForm().getValues());
+ ret = isc.addProperties({}, this.viewGrid.getSelectedRecord(),
this.viewGrid.getEditForm().getValues());
} else {
- return this.viewGrid.getSelectedRecord();
+ ret = this.viewGrid.getSelectedRecord();
}
+ // return an empty object if ret is not set
+ // this happens when a new record could not be saved
+ // and the form view is switched for grid view
+ return ret || {};
},
getPropertyFromColumnName: function(columnName){
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits