From ac1a14da9632b2d44306964f71c8b58dba11e202 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 6 Apr 2026 12:04:23 +0000 Subject: [PATCH] Bug 41954: Display historic group hold ID in patron holds history table Test plan: 1) Enable DisplayAddHoldGroups sys prefs 2) Go to 'Henry' and click 'Search to hold': /cgi-bin/koha/members/moremember.pl?borrowernumber=19 3) Search for 'test' and click the top 'Select all' link 4) Click the downward arrow in the 'Place hold' button and pick 'Place hold for Henry' 5) Set a pickup location for each hold and tick the 'Treat as hold group' checkbox 6) Click 'Place holds'. 7) Check-out an eligible barcode e.g.: 39999000005578 to Henry 8) Visit Henry's holds history: /cgi-bin/koha/members/holdshistory.pl?borrowernumber=19 9) Confirm that a new 'Hold group ID' column exists. 10) Disable DisplayAddHoldsGroups sys prefs. Confirm table looks as expected without the column. Run all hold groups tests: prove t/db_dependent/Koha/Patron.t prove t/db_dependent/api/v1/patrons_hold_groups.t prove t/db_dependent/Koha/Hold.t prove t/db_dependent/Reserves/HoldGroup.t Signed-off-by: Bob Bennhoff Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass (cherry picked from commit c084a3141ab414343924b568b13203feb7df3f68) Signed-off-by: Jacob O'Mara --- .../prog/en/modules/members/holdshistory.tt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index eaef3a1803..2ec6bf6497 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -126,6 +126,9 @@ Title + [% IF Koha.Preference('DisplayAddHoldGroups') %] + Hold group ID + [% END %] Author Barcode Call number @@ -176,6 +179,7 @@ }; const show_itemtype_column = [% Koha.Preference('AllowHoldItemTypeSelection') ? 1 : 0 | html %]; + const display_hold_group_id = [% Koha.Preference('DisplayAddHoldGroups') ? 1 : 0 | html %];