From 4b93a501ed28b66ae1f3c61bc09c17dd7794eb83 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Wed, 21 Feb 2018 13:59:44 -0500 Subject: [PATCH] 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. cesardv: changed tabs to spaces. Signed-off-by: Jason Boyer Signed-off-by: Cesar Velez Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 1 + 1 file changed, 1 insertion(+) 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 59ef059d97..b722a1c8dd 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 @@ -2216,6 +2216,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; -- 2.43.2