LP1980409 require barcode in order to save user/mccanna/lp1980409_allow_empty_call_number_label
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 20 Sep 2022 20:02:47 +0000 (16:02 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Tue, 20 Sep 2022 20:02:47 +0000 (16:02 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 5a61d4f..e80922c 100644 (file)
@@ -1,5 +1,4 @@
-import {Component, OnInit, AfterViewInit, ViewChild, Input, Renderer2, Output, EventEmitter} from '@angular/core';
-import {Router, ActivatedRoute, ParamMap} from '@angular/router';
+import {Component, OnInit, ViewChild, Input, Renderer2, Output, EventEmitter} from '@angular/core';
 import {tap} from 'rxjs/operators';
 import {IdlService, IdlObject} from '@eg/core/idl.service';
 import {OrgService} from '@eg/core/org.service';
@@ -584,7 +583,7 @@ export class VolEditComponent implements OnInit {
         const copies = this.context.copyList();
 
         const badCopies = copies.filter(copy => {
-            return copy._dupe_barcode || (!copy.isnew() && !copy.barcode());
+            return copy._dupe_barcode || !copy.barcode();
         }).length > 0;
 
         if (badCopies) { return false; }