From: Adam Bowling Date: Thu, 7 Mar 2019 05:36:33 +0000 (-0500) Subject: LP#1811899: Fixes call number template editor to allow user to change one X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fabowling%2Flp1811899_unique_identical_callnumber_editing;p=working%2FEvergreen.git LP#1811899: Fixes call number template editor to allow user to change one call number for a copy without affecting those changes on other item copies with the same call number. Signed-off-by: Adam Bowling --- diff --git a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 index 47ccde682b..40aafe8762 100644 --- a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 @@ -121,7 +121,7 @@ [% l('Manual adjustments may be made here. These do not get saved with templates.') %]
-
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js index 255368931f..882661312c 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js @@ -168,7 +168,7 @@ function ($scope, $q, $window, $routeParams, $location, $timeout, egCore, egNet, , 'get_cn_for': function (copy) { var key = $scope.rendered_cn_key_by_copy_id[copy.id]; if (key) { - var manual_cn = $scope.rendered_call_number_set[key]; + var manual_cn = $scope.rendered_cn_key_by_copy_id[copy.id] if (manual_cn && manual_cn.value) { return manual_cn.value; } else { @@ -516,7 +516,7 @@ function ($scope, $q, $window, $routeParams, $location, $timeout, egCore, egNet, value: key }; } - $scope.rendered_cn_key_by_copy_id[copy.id] = key; + $scope.rendered_cn_key_by_copy_id[copy.id] = { value: key }; } } $scope.preview_scope.tickle = Date() + ' ' + Math.random();