Bugzilla – Attachment 23023 Details for
Bug 11265
Problems with locale saving/editing on serial subscriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11265: the locale value is not selected on editing a subscription
Bug-11265-the-locale-value-is-not-selected-on-edit.patch (text/plain), 2.13 KB, created by
Jonathan Druart
on 2013-11-19 10:31:06 UTC
(
hide
)
Description:
Bug 11265: the locale value is not selected on editing a subscription
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-19 10:31:06 UTC
Size:
2.13 KB
patch
obsolete
>From fcc1ba0d9b081545f989833199615f6478000f51 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 19 Nov 2013 11:27:52 +0100 >Subject: [PATCH] Bug 11265: the locale value is not selected on editing a > subscription > >Test plan: >0/ you have to have some locales defined, run dpkg-reconfigure locales >to configure locales >1/ edit a subscription (or add a new one) and select a locale >2/ save >3/ edit again and verify the locale value is selected >--- > .../prog/en/modules/serials/subscription-add.tt | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >index b0d84ee..713b3b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >@@ -706,10 +706,12 @@ $(document).ready(function() { > <label for="locale">Locale</label> > <select id="locale" name="locale"> > <option value=""></option> >- [% FOREACH locale IN locales %] >- <option value="[% locale %]"> >- [% locale %] >- </option> >+ [% FOREACH l IN locales %] >+ [% IF l == locale %] >+ <option value="[% l %]" selected="selected">[% l %]</option> >+ [% ELSE %] >+ <option value="[% l %]">[% l %]</option> >+ [% END %] > [% END %] > </select> > <span class="hint">If empty, system locale is used</span> >-- >1.7.10.4
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 11265
:
23023
|
23026
|
23029
|
23031
|
23125
|
23126