From 153b13fb6deed3e7bbb36cbfb650b7eabafb19a0 Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Thu, 12 Aug 2021 14:09:41 -0400 Subject: [PATCH] LP#1939730 - Use original call number owning_lib when reverting items When removing items with edited call numbers from a course, find or create the resulting call number using the original call number's owning_lib rather than the course owner. Signed-off-by: Michele Morgan Signed-off-by: Terran McCanna Signed-off-by: Jane Sandberg --- Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm index ac6d874b29..3aa5d891e6 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm @@ -276,7 +276,7 @@ sub _resetItemFields { # and other appropriate specifications my $dest_acn = $cat_sess->request('open-ils.cat.call_number.find_or_create', $authtoken, $orig_acn->label, - $existing_acn->record, $course_lib, + $existing_acn->record, $orig_acn->owning_lib, $existing_acn->prefix, $existing_acn->suffix, $existing_acn->label_class)->gather(1); my $acn_id = $dest_acn->{acn_id}; -- 2.11.0