From 5a1b8976d511b24fe676cc2b73cd181c510196b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 25 Sep 2025 11:41:08 +0200 Subject: [PATCH] Bug 40870: Set selected when needed I think this commit simplifies the code a lot. The regression has been caused by commit fe4999ad39a33476fdcf886648e1e52b5947ab04 Bug 38714: acqui/neworderempty.tt It forgot to set the selected attribute. Signed-off-by: Lucas Gass --- .../prog/en/modules/acqui/neworderempty.tt | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 782f0dc2d94..c43b8c0cbcf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -601,29 +601,23 @@ [% END %] [% SET bdgclass = "" %] + [% SET selected = 0 %] [% IF ( budget_loo.b_sel ) %] [% active_count = 0 #select no other fund %] + [% selected = 1 %] [% ELSIF active_count==1 && budget_loo.b_active %] - + [% selected = 1 %] [% ELSE %] [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %] [% END %] - [% IF ( budget_loo.b_sel ) %] - - [% ELSE %] - - [% END %] + [% END %] Required -- 2.39.5