LP#1942220: default new copy's owning branch to WS OU
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 15:59:28 +0000 (10:59 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 15:59:28 +0000 (10:59 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts

index 60cb0f2..b93cac6 100644 (file)
@@ -131,6 +131,7 @@ export class LineitemCopiesComponent implements OnInit, AfterViewInit {
         while (copies.length < this.copyCount) {
             const copy = this.idl.create('acqlid');
             copy.id(LineitemCopiesComponent.newCopyId--);
+            copy.owning_lib(this.auth.user().ws_ou());
             copy.isnew(true);
             copy.lineitem(this.lineitem.id());
             copies.push(copy);