From: Jason Boyer Date: Wed, 21 Feb 2018 18:59:44 +0000 (-0500) Subject: LP1750887: Copy Objects when Saving Copy Templates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=969ea43be7b05e28466b091f137e28c6bdb51a7b;p=working%2FEvergreen.git LP1750887: Copy Objects when Saving Copy Templates Copy the callnumbers and statcats objects when saving copy templates to prevent accidental and confusing editing of in-memory copies. Signed-off-by: Jason Boyer --- 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 39e4aafc77..d324ed5005 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 @@ -2061,6 +2061,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , if (angular.isObject(v)) { // we'll use the pkey if (v.id) v = v.id(); else if (v.code) v = v.code(); + else v = angular.copy(v); // Should only be statcats and callnumbers currently } tmpl[k] = v;