From ae1d8ab62a85ded1b4b5ffcc7b7cce8bd6396d1e 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 Signed-off-by: Kathy Lussier --- 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 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); }); } -- 2.43.2