From 58c25f1c78091c714e24710ca65b8989f02c80b4 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 6 Mar 2024 18:41:04 +0000 Subject: [PATCH] Bug 34823: Do not show Item group dropdown if there are no item groups To test: 1. Enable EnableItemGroups and EnableItemGroupHolds 2. Go to the OPAC and log in as a patron 3. Go to any record that doesn't have grouped items and try to place a hold 4. Click on "Show more options" 5. See "Request specific item group:" and dropdown 6. APPLY PATCH 7. Try again, this time if the record has no item groups you should not see the dropdown at all. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit be98d633be1fb34f52ccc8b57b18280856cf1d1a) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 7009b3d830..b4642263e3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -313,7 +313,7 @@ [% END %] [% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %] - [% IF Koha.Preference('EnableItemGroupHolds') && bibitemloo.object.item_groups %] + [% IF Koha.Preference('EnableItemGroupHolds') && bibitemloo.object.item_groups.count %]