From 4cf04214d381dd9a9eed28a2ee24e0c01eaaf36f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 29 Jun 2020 17:56:31 +0200 Subject: [PATCH] Bug 20799: (follow-up) Add ILLModule system preference check and fix display for no requests When there were no requests the label would still display, using .count fixes this. Also adds a check on the ILLModule system preference to prevent the information from showing when the ILL module is deactivated. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 799edb7b4f..96a8ebc142 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -128,7 +128,7 @@ [% END %] - [% IF ( illrequests ) %] + [% IF ( Koha.Preference( 'ILLModule' ) && illrequests.count ) %] ILL requests: [% IF CAN_user_ill %] -- 2.39.5