LP1888723 Item attrs edit owning lib change repair
authorBill Erickson <berickxx@gmail.com>
Thu, 10 Sep 2020 21:59:23 +0000 (17:59 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:55:20 +0000 (19:55 -0400)
Fixes a thinko in the item update code when changing the owning lib for
an item.  A value must be passed to copy.ischange(...) to have any
effect.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts

index 25a7b0d..fdd8365 100644 (file)
@@ -336,7 +336,7 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit {
             }
 
             copy.call_number(newVol);
-            copy.ischanged();
+            copy.ischanged(true);
 
             this.context.removeCopyNode(copy.id());
             this.context.findOrCreateCopyNode(copy);