details: https://code.openbravo.com/erp/devel/pi/rev/12574ebf963a
changeset: 24289:12574ebf963a
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Thu Aug 21 12:14:32 2014 +0200
summary: Fixes issue 27405: Problems filtering P&E grids in slow environments
The problem was that when the response of the first datasource request was
received, the second one was already in progress, so the grid local data only
contained 'loading' records. At that point the grid local data was not
accessible. To fix this, now it takes into accout if the grid local data can be
accessed.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
| 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 69c68601b870 -r 12574ebf963a
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
Wed Aug 20 14:55:02 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
Thu Aug 21 12:14:32 2014 +0200
@@ -463,6 +463,9 @@
record[this.selectionProperty] = true;
if (this.data.savedData) {
savedRecord = this.data.savedData.find('id', this.selectedIds[i]);
+ if (!savedRecord) {
+ continue;
+ }
//Setting editable fields from saved Data to retain values.
for (j = 0; j < fields.length; j++) {
if (fields[j].canEdit !== false) {
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits