From 4f1328cef0c4941a101e83dca978488f0630ebbe Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 14 Apr 2025 08:03:58 +0000 Subject: [PATCH] Bug 39624: Add patron category * (All) to open_article_requests limit Test plan: Go to smart rules. Add a limit for All. Refresh and check if it is still there. Enable ArticleRequests and verify if the limit is working. Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 9ce8a43dbd2..169b6defd49 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 @@ -984,13 +984,16 @@   [% FOREACH c IN categorycodes %] - [% NEXT UNLESS c %] [% SET i = undef %] [% SET open_article_requests_limit = all_rules.$c.$i.open_article_requests_limit %] [% IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %] - [% Categories.GetName(c) | html %] + [% IF c == undef %] + All + [% ELSE %] + [% Categories.GetName(c) | html %] + [% END %] [% IF open_article_requests_limit.defined && open_article_requests_limit != '' %] [% open_article_requests_limit | html %] @@ -1008,6 +1011,7 @@