From: Bill Erickson Date: Fri, 8 Jul 2022 14:16:17 +0000 (-0400) Subject: LP1959716 Volcopy Add Notes/Alert to New Copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db1cccd099fdbb026d5f5c3eb29c755bd00d2aaa;p=working%2FEvergreen.git LP1959716 Volcopy Add Notes/Alert to New Copies Fixes an issue where creating new copy alerts / notes failed for brand new copies. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts index 5115ffa41d..b5a0cd54c0 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts @@ -79,7 +79,7 @@ export class CopyAlertsDialogComponent // In manage mode, we can only manage a single copy. // But in create mode, we can add alerts to multiple copies. - if (this.copyIds.length === 1) { + if (this.copyIds.length === 1 && !this.inPlaceCreateMode) { this.mode = 'manage'; } else { this.mode = 'create'; diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-notes-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-notes-dialog.component.ts index 7d277940e1..ad9d94d845 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-notes-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-notes-dialog.component.ts @@ -79,7 +79,7 @@ export class CopyNotesDialogComponent // In manage mode, we can only manage a single copy. // But in create mode, we can add notes to multiple copies. - if (this.copyIds.length === 1) { + if (this.copyIds.length === 1 && !this.inPlaceCreateMode) { this.mode = 'manage'; } else { this.mode = 'create';