From: Jessica Woolford Date: Fri, 9 Dec 2022 15:32:25 +0000 (-0500) Subject: LP #1998494: Angular Holdings Editor: Cannot create empty call numbers X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=53c962f7394bf63cb1941396ac4abca4a05ec32a;p=Evergreen.git LP #1998494: Angular Holdings Editor: Cannot create empty call numbers Returns support for adding empty call numbers when adding holdings. Signed-off-by: Jessica Woolford Signed-off-by: Mary Llewelln Signed-off-by: Elaine Hardy Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts index e80922cdcc..26266f0731 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts @@ -583,7 +583,7 @@ export class VolEditComponent implements OnInit { const copies = this.context.copyList(); const badCopies = copies.filter(copy => { - return copy._dupe_barcode || !copy.barcode(); + return copy._dupe_barcode || (!copy.isnew() && !copy.barcode()); }).length > 0; if (badCopies) { return false; }