[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. b46e5e774bdbe1468a05d474af722fcbea048835
Evergreen Git
git at git.evergreen-ils.org
Mon Mar 25 16:55:50 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_2 has been updated
via b46e5e774bdbe1468a05d474af722fcbea048835 (commit)
from 52ae1b1d5adbba0c860db59c06c84b19541e3fc2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b46e5e774bdbe1468a05d474af722fcbea048835
Author: Bill Erickson <berickxx at gmail.com>
Date: Fri Mar 22 13:41:12 2019 -0700
LP1821409 Ang admin editor clears fields on new
The Angular admin pages re-use an FmEditor component for creating and
updating objects. When creating a new object after editing an existing
object, reset the editor so it won't load the previously edited object.
Signed-off-by: Bill Erickson <berickxx at gmail.com>
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts
index ff47237bf5..2c9b257440 100644
--- a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts
@@ -171,6 +171,10 @@ export class AdminPageComponent implements OnInit {
this.createNew = () => {
this.editDialog.mode = 'create';
+ // We reuse the same editor for all actions. Be sure
+ // create action does not try to modify an existing record.
+ this.editDialog.recId = null;
+ this.editDialog.record = null;
this.editDialog.open({size: this.dialogSize}).then(
ok => {
this.createString.current()
-----------------------------------------------------------------------
Summary of changes:
.../src/eg2/src/app/staff/share/admin-page/admin-page.component.ts | 4 ++++
1 file changed, 4 insertions(+)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list