Bugzilla – Attachment 26790 Details for
Bug 9088
neworderempty should preselect the only active fund for new orders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9088: neworderempty should preselect the only fund
Bug-9088-neworderempty-should-preselect-the-only-f.patch (text/plain), 1.82 KB, created by
Marcel de Rooy
on 2014-04-03 12:52:42 UTC
(
hide
)
Description:
Bug 9088: neworderempty should preselect the only fund
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-04-03 12:52:42 UTC
Size:
1.82 KB
patch
obsolete
>From d94ad12f365eeb2eb8ae738694eca36c3f8dd7ee Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 3 Apr 2014 14:15:11 +0200 >Subject: [PATCH] Bug 9088: neworderempty should preselect the only fund >Content-Type: text/plain; charset=utf-8 > >If there is only one fund in the select combo (and the fund is mandatory), >neworderempty should just select it already. >If there are more choices, behavior does not change. > >This patch implements this change in the template itself. > >Test plan: >With more funds, check if neworderempty does not preselect a fund (at least >when adding a line; when you modify, you should see what you had chosen). >With one fund, check if it is already selected (add or modify). >Toggle the setting of AcqCreateItem and check again. >--- > .../prog/en/modules/acqui/neworderempty.tt | 3 +++ > 1 files changed, 3 insertions(+), 0 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 596aa07..e57ea13 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -416,6 +416,9 @@ $(document).ready(function() > <label class="required" for="budget_id">Fund: </label> > <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id"> > <option value="">Select a fund</option> >+ [% IF budget_loop.size == 1 %] >+ [% budget_loop.first.b_sel = 1 %] >+ [% END %] > [% FOREACH budget_loo IN budget_loop %] > [% IF ( budget_loo.b_sel ) %] > <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> >-- >1.7.7.6
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 9088
:
13460
|
13461
|
14957
|
14958
|
26790
|
27067
|
27188
|
27191
|
27712
|
28043
|
28142
|
28291