Bugzilla – Attachment 100688 Details for
Bug 24866
Display budget hierarchy in the budget dropdown menu used when placing a new order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24866 - Display budget hierarchy in the budget dropdown menu used when placing a new order
Bug-24866---Display-budget-hierarchy-in-the-budget.patch (text/plain), 3.52 KB, created by
Didier Gautheron
on 2020-03-13 16:44:42 UTC
(
hide
)
Description:
Bug 24866 - Display budget hierarchy in the budget dropdown menu used when placing a new order
Filename:
MIME Type:
Creator:
Didier Gautheron
Created:
2020-03-13 16:44:42 UTC
Size:
3.52 KB
patch
obsolete
>From 5bb2d8b5204dfc827af89ac3c47ee2de187b6df4 Mon Sep 17 00:00:00 2001 >From: Koha User <support@biblibre.com> >Date: Fri, 13 Mar 2020 17:33:43 +0100 >Subject: [PATCH] Bug 24866 - Display budget hierarchy in the budget dropdown > menu used when placing a new order > >The rendering of SELECT elements is up to the browser. >But Bug 16123 CSS code 'style="padding-left: xx' doesn't work on modern browsers. > >This patch replace CSS style attribute with   html entity. > >On supported platforms >TEST PLAN : > >1. Go to the Administration module >2. Add a new budget (ie : Budget 2020) >3. Add a fund to this budget (ie : Book) >4. Add a child fund (ie : Adult fiction) > >You will have this hierarchy : > >Budget 2020 > |____ Book > |_____ Adult fiction > >5. Go to the Acquisition module >6. Select a vendor and create a new basket >7. Place an order >8. Check the budget dropdown menu > >BEFORE PATCH >Book >Adult fiction > >OR > >Book > Adult fiction > >AFTER PATCH >Book > Adult fiction >--- > .../prog/en/modules/acqui/neworderempty.tt | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 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 40a4aff187..6cc3caf24f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -340,22 +340,26 @@ > <select id="budget_id" size="1" name="budget_id"> > <option value="">Select a fund</option> > [% FOREACH budget_loo IN budget_loop %] >+ [% level_indent_cnt = 0 %] >+ [% level_indent = "" %] >+ [% WHILE level_indent_cnt < budget_loo.b_level %] >+ [% level_indent = level_indent _ " " %] >+ [% level_indent_cnt = level_indent_cnt +1 %] >+ [% END %] >+ > [% IF ( budget_loo.b_sel ) %] > [% active_count = 0 #select no other fund %] > <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" >- style="padding-left:[% budget_loo.b_level | html %]em;" > > > [% ELSIF active_count==1 && budget_loo.b_active %] > <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]" >- style="padding-left:[% budget_loo.b_level | html %]em;" > > > [% ELSE %] > [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %] > <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 %]" >- style="padding-left:[% budget_loo.b_level | html %]em;" > > > [% END %] >- [% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %] >+ [%level_indent%][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %] > </option> > [% END %] > </select> >-- >2.17.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 24866
:
100688
|
101633
|
101634
|
102274
|
102399
|
102453
|
127487
|
127997
|
128091
|
128092
|
128093
|
129366
|
129367
|
129368
|
129369