From 7a03815138b861a5894816e3c100e3a6daaaffb0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Feb 2020 15:59:01 +0100 Subject: [PATCH] Bug 18936: Display 'Unlimited' for Holds allowed (total) holds_per_day and reservesallowed are set to unlimited in the rules inserted by misc4dev Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index 23532efa4e..ed737af2cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -248,7 +248,13 @@ [% no_auto_renewal_after | html %] [% no_auto_renewal_after_hard_limit | $KohaDates %] - [% reservesallowed | html %] + + [% IF reservesallowed.defined && reservesallowed != '' %] + [% reservesallowed | html %] + [% ELSE %] + Unlimited + [% END %] + [% IF holds_per_day.defined && holds_per_day != '' %] [% holds_per_day | html %] -- 2.39.5