From daae656c76cd4b3d17a789d16e3f8db77fbed509 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 --- .../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 6aa30fe8f0e..fe5e82be8da 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 @@ -364,7 +364,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