From be89e4485f7ba3c4b958233d73a0721dcf21ed8d Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Thu, 7 Nov 2019 22:00:21 -0600 Subject: [PATCH] LP1832735 - Allow copy alerts to be applied to multiple copies Signed-off-by: Josh Stompro Signed-off-by: Beth Willis Signed-off-by: Jane Sandberg --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 3 +++ 1 file changed, 3 insertions(+) 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 20b819e066..f19c4c998a 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 @@ -1229,6 +1229,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , angular.forEach( $scope.workingGridControls.selectedItems(), function (cp) { + if (!angular.isArray(cp.copy_alerts())) cp.copy_alerts([]); $scope.dirty = true; angular.forEach(alerts, function(alrt) { var a = egCore.idl.fromHash('aca', alrt); @@ -1253,6 +1254,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , angular.forEach( $scope.workingGridControls.selectedItems(), function (cp) { + if (!angular.isArray(cp.notes())) cp.notes([]); $scope.dirty = true; angular.forEach(notes, function(note) { var n = egCore.idl.fromHash('acpn', note); @@ -2301,6 +2303,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , if (typeof(copy_alert.note) != 'undefined' && copy_alert.note != '') { angular.forEach(copy_list, function (cp) { + if (!angular.isArray(cp.copy_alerts())) cp.copy_alerts([]); var a = new egCore.idl.aca(); a.isnew(1); a.create_staff(copy_alert.create_staff); -- 2.11.0