details: /erp/devel/pi/rev/4fff0c828cdb
changeset: 10900:4fff0c828cdb
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Feb 28 10:35:03 2011 +0100
summary: Solved undefined js error when saving a new sales invoice
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
| 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 6cd43e3cf91a -r 4fff0c828cdb
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Feb 28 10:25:42 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Feb 28 10:35:03 2011 +0100
@@ -1484,6 +1484,9 @@
setRecordErrorMessage: function(rowNum, msg){
var record = this.getRecord(rowNum);
+ if (!record) {
+ return;
+ }
record[isc.OBViewGrid.ERROR_MESSAGE_PROP] = msg;
if (msg) {
record[this.recordBaseStyleProperty] = this.recordStyleError;
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits