From: Galen Charlton Date: Tue, 9 Nov 2021 15:24:04 +0000 (-0500) Subject: LP#1855780: adjustments to cloning X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=de6feb37440ece9344405975d4f655a967dd1b76;p=evergreen%2Fpines.git LP#1855780: adjustments to cloning - set the owning OU to null in the clone - reduce console noise when cloning environment entries Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html index 170dcb295a..cb6a70198a 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html @@ -10,6 +10,7 @@ diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.ts index 84acf4e5fe..d7183a2c06 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.ts @@ -253,6 +253,7 @@ export class TriggersComponent implements OnInit { doClone(eventDef, env_list) { eventDef.id(null); + eventDef.owner(null); this.eventDialog.mode = 'create'; this.eventDialog.recordId = null; this.eventDialog.record = eventDef; @@ -281,11 +282,10 @@ export class TriggersComponent implements OnInit { env.id(null); }); this.pcrud.create(env_list).toPromise().then( - ok => { - console.debug(ok); - }, + ok => { }, err => { - console.debug(err); + this.cloneFailedString.current() + .then(str => this.toast.danger(str)); } ); }