LP#1855780: avoid race condition when deleting env or params
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 8 Nov 2021 17:00:42 +0000 (12:00 -0500)
committerJane Sandberg <sandbergja@gmail.com>
Wed, 17 Nov 2021 19:55:11 +0000 (11:55 -0800)
commitf7e96d742e64d89e7aaa71d83c79beaf65bf3b77
tree47718a5406b0ed2bb30bcb323e21ee89c79ebaf0
parent1ba9de787b7721a4c219ee76182af7a5b7673392
LP#1855780: avoid race condition when deleting env or params

When deleting from a grid using pcrud.autoApply, the grid
should be refreshed only at the very end. Otherwise, even if you're
deleting only one row, the grid reload could occur before the
deletion is committed, yielding a grid fetch error when
pcrud complains about verifying access to a row that is
no longer in the database.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.ts