From 21c098e90137252a279f8c656bb7d7d794b57db5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 28 Jan 2022 13:47:35 +0100 Subject: [PATCH] Bug 29058: Don't display 'Always show holds' at the bottom of the patron list The checkbox should not appear if we are selecting a patron Signed-off-by: Jonathan Druart --- .../prog/en/modules/reserve/request.tt | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 1afeb692867..16348f3bdd5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -905,16 +905,18 @@ [% END %] [% UNLESS ( patron ) %] - [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %] - [% IF hold_count %] - - [% IF always_show_holds == 'DONT' %] - - [% UNLESS reserveloop %] - Show holds ([% hold_count %]) + [% UNLESS borrowers %] + [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %] + [% IF hold_count %] + + [% IF always_show_holds == 'DONT' %] + + [% UNLESS reserveloop %] + Show holds ([% hold_count %]) + [% END %] + [% ELSE %] + [% END %] - [% ELSE %] - [% END %] [% END %] [% IF ( reserveloop ) %] -- 2.25.1