From f91ae9719641e69016b4b85a773b0e6d3aeb8d63 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 6 Mar 2023 20:03:14 +0000 Subject: [PATCH] Bug 8367: (QA follow-up) Improve display when value not set for rule When a rule is not set for a speficic line, the value in the syspref will be used. This should be made clear in the interface. To test: 1 - Add a new rule for a specific item type 2 - Do not fill the 'Hold pickup period' 3 - Confirm that the rule defaults to the system preference 4 - Hover on 'Default' in the circ rules under 'Hold pickup period' 5 - Confirm the text is readable Signed-off-by: Nick Clemens Signed-off-by: Kelly Signed-off-by: Katrin Fischer Signed-off-by: Kelly --- .../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 c66fb02fbf..23c57d925e 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 @@ -369,7 +369,13 @@ Don't allow [% END %] - [% holds_pickup_period | html %] + + [% IF holds_pickup_period == '' %] + Default + [% ELSE %] + [% holds_pickup_period | html %] + [% END %] + [% IF Koha.Preference('ArticleRequests') %] [% IF article_requests == 'no' %] -- 2.30.2