From: Josh Stompro Date: Fri, 8 Nov 2019 04:00:21 +0000 (-0600) Subject: LP1832735 - Allow copy alerts to be applied to multiple copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2b565d778de776c0cc62d0eac6b865de982b84d1;p=working%2FEvergreen.git 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 --- 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);