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=1a6f3003a9565fad8da89824f24a53037a796dfd;p=working%2FEvergreen.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 --- 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 9732361e07..aa90f1655f 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); }); }