From 5f868e94627b28bf4abae1f83b90445d86560662 Mon Sep 17 00:00:00 2001 From: Jessica Woolford Date: Fri, 9 Dec 2022 10:32:25 -0500 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2996ef3fe5..ed8271726c 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 @@ -626,7 +626,7 @@ export class VolEditComponent implements OnInit { const copies = this.context.copyList(); const badCopies = copies.filter(copy => { - return copy._dupe_barcode || copy._bad_barcode ||!copy.barcode(); + return copy._dupe_barcode || copy._bad_barcode || (!copy.isnew() && !copy.barcode()); }).length > 0; if (badCopies) { return false; } -- 2.11.0