details: https://code.openbravo.com/erp/devel/pi/rev/a6d788e3208b
changeset: 32628:a6d788e3208b
user: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
date: Fri Sep 08 00:55:48 2017 +0200
summary: Fixed issue 36611: Selection is lost when an error is raised
removing a record
When were removing a row and an error was raised (e.g. Deleting a already
processed "Good Shipment" is stopped
by a trigger) the selection of the record was lost. This generates an
inconsistent grid state that creates all
the reported problems.
The problem is fixed by take into account the described situation removing the
deselectAllRecords method because
it has no sense to remove the selection if it is not possible to know if the
removed process ends succesfully.
Now the selection is maintained if the record can't be removed properly.
Now the selection is maintained if the record can't be removed.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
| 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diffs (12 lines):
diff -r 1fe55bea0066 -r a6d788e3208b
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Thu Sep 07 12:16:48 2017 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Fri Sep 08 00:55:48 2017 +0200
@@ -2339,8 +2339,6 @@
}
selection = currentGrid.getSelection().duplicate();
- // deselect the current records
- currentGrid.deselectAllRecords();
view.viewGrid.markForCalculateSummaries();
if (selection.length > 1) {
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits