From fefe48aa724e7f41fe81962ce178a63cd2840c76 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 1 Feb 2016 19:53:43 -0500 Subject: [PATCH] webstaff: fix more cases where new copies weren't being saved Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index ab5ceccb72..78c14b0214 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -546,7 +546,9 @@ function(egCore , $q) { while ($scope.copy_count > $scope.copies.length) { var cp = itemSvc.generateNewCopy( $scope.callNumber, - $scope.callNumber.owning_lib() + $scope.callNumber.owning_lib(), + $scope.fast_add, + true ); $scope.copies.push( cp ); $scope.allcopies.push( cp ); @@ -665,7 +667,12 @@ function(egCore , $q) { cn.owning_lib( $scope.owning_lib.id() ); cn.record( $scope.full_cn.record() ); - var cp = itemSvc.generateNewCopy(cn, $scope.owning_lib.id()); + var cp = itemSvc.generateNewCopy( + cn, + $scope.owning_lib.id(), + $scope.fast_add, + true + ); $scope.struct[cn.id()] = [cp]; $scope.allcopies.push(cp); -- 2.11.0