webstaff: fix more cases where new copies weren't being saved
authorGalen Charlton <gmc@esilibrary.com>
Tue, 2 Feb 2016 00:53:43 +0000 (19:53 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:55 +0000 (14:58 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index ab5cecc..78c14b0 100644 (file)
@@ -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);