LP1980409 require barcode in order to save
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 20 Sep 2022 20:02:47 +0000 (16:02 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Thu, 13 Oct 2022 18:04:21 +0000 (14:04 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Christine Morgan <cmorgan@noblenet.org>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 8c3f30a..9370a07 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';
@@ -536,7 +535,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; }