From 91a25d96cc50f78d373a7430db44fa3b58b6c582 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 26 Jan 2016 13:06:14 -0500 Subject: [PATCH] webstaff: save copy templates now unconditional The save copy templates button in the volume/copy editor no longer requires that a working template be active; this way, users can save the set of templates after an import without having to select one of them first. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 4 ++++ 1 file changed, 4 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 cfd974a268..7b72add017 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 @@ -1620,6 +1620,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.$parent.fetchTemplates(); $scope.dirty = false; + } else { + // save all templates, as we might do after an import + egCore.hatch.setItem('cat.copy.templates', $scope.templates); + $scope.$parent.fetchTemplates(); } } -- 2.43.2