From 37c8c938b160ace2482e3a03c126774ab1a72f75 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. --- .../prog/en/modules/acqui/neworderempty.tt | 20 ++++--------------- 1 file changed, 4 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..3c764e610d8 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,17 @@ [% END %] [% SET bdgclass = "" %] + [% SET selected = "" %] [% IF ( budget_loo.b_sel ) %] [% active_count = 0 #select no other fund %] + [% selected = 'selected="selected"' %] [% ELSIF active_count==1 && budget_loo.b_active %] - + [% selected = 'selected="selected"' %] [% ELSE %] [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %] [% END %] - [% IF ( budget_loo.b_sel ) %] - - [% ELSE %] - - [% END %] + [% END %] Required -- 2.34.1