From 61fcc16e989540c1f2da7f0d289a4c8b82dc5f28 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 12 Jan 2024 18:05:22 +0000 Subject: [PATCH] Bug 35774: Use itemnumber instead of biblioitemnumber With Bug 33639 already pushed to master there should be NO change in behavior. To test: 1. APPLY PATCH 2. Create one or more item groups for a bib if needed 3. Create a new item, and at the bottom of the 'Add item' screen, select the item group to which you want this item added. Save. 4. The item should succesffuly be added to the item group. 5. Add a new item and to the same record and this time try the 'Create a new item group' from the dropdown. 6. Name the new item group. 7. Make sure it is correctly added to the item group. --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index cb517a51c7..b84d70cc50 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -444,7 +444,7 @@ if ($op eq "additem") { $current_item->discard_changes; # Cannot chain discard_changes $current_item = $current_item->unblessed; add_item_to_item_group( - $item->biblionumber, $item->biblioitemnumber, $item_group, + $item->biblionumber, $item->itemnumber, $item_group, $item_group_description ); -- 2.30.2