From be00a64d00b60a26230434635816390dd2585aa9 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 9a46b4ac71c..306b8eaca0d 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 | html %]) + [% UNLESS borrowers %] + [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %] + [% IF hold_count %] + + [% IF always_show_holds == 'DONT' %] + + [% UNLESS reserveloop %] + Show holds ([% hold_count | html %]) + [% END %] + [% ELSE %] + [% END %] - [% ELSE %] - [% END %] [% END %] [% IF ( reserveloop ) %] -- 2.25.1