From ae074bb92d1c448d3bd6d444256783a73fd7b630 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 6e7c7528d7..a95d66774c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm @@ -273,7 +273,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