Bugzilla – Attachment 186909 Details for
Bug 40870
Fund code is lost when modifying an order in acquisitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40870: Set selected when needed
Bug-40870-Set-selected-when-needed.patch (text/plain), 3.29 KB, created by
Jonathan Druart
on 2025-09-25 09:45:07 UTC
(
hide
)
Description:
Bug 40870: Set selected when needed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-25 09:45:07 UTC
Size:
3.29 KB
patch
obsolete
>From 041b86104ec537735a15f32a0e339c5dff70690d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 | 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 ) %] >- <option >- value="[% budget_loo.b_id | html %]" >- class="[% bdgclass | html %]" >- data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" >- data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" >- selected="selected" >- > >- [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %] >- </option> >- [% ELSE %] >- <option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"> >- [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %] >- </option> >- [% END %] >+ <option >+ value="[% budget_loo.b_id | html %]" >+ class="[% bdgclass | html %]" >+ data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" >+ data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" >+ [% IF selected %]selected="selected"[% END %] >+ ></option> > [% END %] > </select> > <span class="required">Required</span> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40870
:
186884
|
186888
|
186895
|
186908
|
186909
|
186921