From e9e63cd20878c2b267f57b7879cd31448061694f Mon Sep 17 00:00:00 2001 From: Adam Bowling Date: Thu, 21 Oct 2021 16:51:50 -0400 Subject: [PATCH] LP#1845556: Adds back the ability to edit duplicate call numbers. Signed-off-by: Adam Bowling Signed-off-by: Terran McCanna --- Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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..6b172b5629 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.') %]
-
+
@@ -267,4 +267,4 @@ label. Use pocket label left margin to identify how much space to provide betwee context="preview_scope">
- \ No newline at end of file + 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 e8803e0c65..11905ab49c 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_call_number_set[copy.id]; if (manual_cn && manual_cn.value) { return manual_cn.value; } else { @@ -517,7 +517,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(); -- 2.11.0