From 041bf720e4375e6f90c18db7b9359e8ef29f128a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 12 Jul 2022 11:22:36 +0100 Subject: [PATCH] Bug 31141: Remove 'select_column' from waiting_holds.inc In the only place we use the waiting_holds include, we were hard coded to always pass the 'select_column' variable as true. We can simply and clarify the logic by just removing this superflous variable. Test plan 1. Confirm that the waiting holds tables continue to display as expected Signed-off-by: Jonathan Druart Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f58099a2440a8482b09ae14df89c1cd6eb43c5d6) Signed-off-by: Lucas Gass (cherry picked from commit 3f0a70a271bda696b9e39b162faca1c504a980b8) Signed-off-by: Arthur Suzuki --- .../prog/en/includes/waiting_holds.inc | 14 ++++++-------- .../prog/en/modules/circ/waitingreserves.tt | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc index 27e7fb7724..687dd75379 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc @@ -3,11 +3,10 @@ - [% IF select_column %] - [% END %] - - + + + @@ -22,11 +21,10 @@ [% FOREACH reserveloo IN reserveloop %] - [% IF select_column %] - [% END %] - - + + +
Waiting sinceDate hold placedWaiting sinceDate hold placedExpiration date Title Patron Home library
[% reserveloo.waitingdate | $KohaDates %][% reserveloo.reservedate | $KohaDates %][% reserveloo.waitingdate | $KohaDates %][% reserveloo.reservedate | $KohaDates %][% reserveloo.expirationdate | $KohaDates %] [% INCLUDE 'biblio-title.inc' biblio=reserveloo.biblio link = 1 %] [% UNLESS ( item_level_itypes ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt index 5ee8efbb79..718878222f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt @@ -93,7 +93,7 @@
- [% INCLUDE waiting_holds.inc select_column='1' table_name='holdst' reserveloop=reserveloop tab='holdwaiting' %] + [% INCLUDE waiting_holds.inc table_name='holdst' reserveloop=reserveloop tab='holdwaiting' %] [% ELSE %]
No holds found.
[% END %] @@ -118,7 +118,7 @@ [% END %] - [% INCLUDE waiting_holds.inc select_column='1' table_name='holdso' reserveloop=overloop tab='holdsover' %] + [% INCLUDE waiting_holds.inc table_name='holdso' reserveloop=overloop tab='holdsover' %] [% ELSE %]
No holds found.
[% END %] -- 2.39.5