Bugzilla – Attachment 191035 Details for
Bug 41553
Add fund code to fund pulldown for order editor ( neworderempty.pl )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl )
Bug-41553-Add-fund-code-to-fund-pulldown-for-order.patch (text/plain), 3.66 KB, created by
Kyle M Hall (khall)
on 2026-01-08 19:28:16 UTC
(
hide
)
Description:
Bug 41553: Add fund code to fund pulldown for order editor ( neworderempty.pl )
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2026-01-08 19:28:16 UTC
Size:
3.66 KB
patch
obsolete
>From c1350f45400ee740e125c57f070e9c2ff66979be Mon Sep 17 00:00:00 2001 >From: John Doe <you@example.com> >Date: Thu, 8 Jan 2026 19:14:44 +0000 >Subject: [PATCH] Bug 41553: Add fund code to fund pulldown for order editor ( > neworderempty.pl ) > >It's possible to give multiple funds the same name. It would be helpful to have the fund code in the pulldown options to help disambiguate these funds. > >In addition, spans with classes have been added to both the fund name and the fund code for ease of styling. > >Test Plan: >1) Create 2 funds with the same name and different fund codes >2) Apply this patch >3) Restart all the things! >4) Create a new order, note the fund code is displayed after the fund name >--- > acqui/neworderempty.pl | 1 + > admin/file_transports.pl | 5 +++-- > .../intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 4 ++-- > 3 files changed, 6 insertions(+), 4 deletions(-) > >diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl >index efbec39ac0a..012f7389344 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -340,6 +340,7 @@ foreach my $r ( @{$budgets} ) { > push @{$budget_loop}, { > b_id => $r->{budget_id}, > b_txt => $r->{budget_name}, >+ b_code => $r->{budget_code}, > b_sort1_authcat => $r->{'sort1_authcat'}, > b_sort2_authcat => $r->{'sort2_authcat'}, > b_active => $r->{budget_period_active}, >diff --git a/admin/file_transports.pl b/admin/file_transports.pl >index dda6fe2dd1f..79f4bd2fdea 100755 >--- a/admin/file_transports.pl >+++ b/admin/file_transports.pl >@@ -200,8 +200,9 @@ if ( $op eq 'list' ) { > } > > $template->param( >- op => $op, >- messages => \@messages, >+ sftp_allow_password => C4::Context->config('sftp_allow_password') // 1, >+ op => $op, >+ messages => \@messages, > ); > > output_html_with_http_headers $input, $cookie, $template->output; >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..b2fddc450c6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -617,11 +617,11 @@ > 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 %] >+ [% level_indent | html %]<span class="budget_name">[% budget_loo.b_txt | html %]</span> <span class="budget_code">([% budget_loo.b_code | html %])</span>[% 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 %] >+ [% level_indent | html %]<span class="budget_name">[% budget_loo.b_txt | html %]</span> <span class="budget_code">([% budget_loo.b_code | html %])</span>[% IF !budget_loo.b_active %](inactive)[% END %] > </option> > [% END %] > [% END %] >-- >2.50.1 (Apple Git-155)
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 41553
:
191035
|
191036