Bug 40870: Set the fund code to selected on acqui/neworderempty.pl

To tes:
1- add an order to a basket in acquisitions
2- confirm your order shows in the basket with a fund code selected
3- click Modify on your order
4- note that Fund is empty in the modify form and you need to re-select it
5. APPLY PATCH
6. Try steps 1 -4 again, the correct fund should be set on page load

Signed-off-by: Wendy Bartlett <wbartlett@cuyahogalibrary.org>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2025-09-24 14:18:10 +00:00
parent b7bd25885e
commit 5ceb2c78e9
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 15 additions and 3 deletions

View File

@ -609,9 +609,21 @@
[% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
[% 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 %]">
[% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %](inactive)[% END %]
</option>
[% 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 %]
[% END %]
</select>
<span class="required">Required</span>