From 1a6f3003a9565fad8da89824f24a53037a796dfd Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 28 Jan 2016 14:32:56 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 2 ++ 1 file changed, 2 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 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); }); } -- 2.11.0