From e222aa73bfef5d6a083932bca991243e7b741e83 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 11 Jun 2019 19:07:37 -0400 Subject: [PATCH] LP#1832897: improvements to eg-fm-record-editor * Add a new optional attribute, preSave, for passing a callback to modify modify records (e.g., to provide default values) before they are saved. * Ensure that the components current copy of a record is discarded when the user closes or dismisses the modal This addresses an issue where editing multiple instances of records on an admin page could display (and/or flash) stale data, particularly for the new multi-select widget. Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- .../app/share/fm-editor/fm-editor.component.html | 4 +-- .../src/app/share/fm-editor/fm-editor.component.ts | 30 ++++++++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html index 476c261c34..85c0c65619 100644 --- a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html +++ b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html @@ -9,7 +9,7 @@ @@ -162,7 +162,7 @@