From: Galen Charlton Date: Thu, 28 Jan 2016 19:32:56 +0000 (-0500) Subject: webstaff: copy template fix X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ae1d8ab62a85ded1b4b5ffcc7b7cce8bd6396d1e;p=evergreen%2Fmasslnc.git webstaff: copy template fix This patches fixes applying the volume portion of a template when in the copy template tab of the volume/copy editor. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- 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 760a56b5fa..d90c50e15f 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 @@ -1602,6 +1602,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.working[k] = angular.copy(v); } else { angular.forEach(v, function (sv,sk) { + if (!(k in $scope.working)) + $scope.working[k] = {}; $scope.working[k][sk] = angular.copy(sv); }); }