Bug 11265: ensure current locale is selected when 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
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No koha-qa errors.
Tested creating a suscription, selecting locale (have many) and saving.
When editing suscription:
1) Without patch locale value is not showed on page, empty value
2) With patch correct value is displayed
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Template change only.
Works as expected - saved locale is now shown on editing the
subscription and will not be deleted upon saving.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit ff0b85a0e0)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
This commit is contained in:
parent
0297021030
commit
cedbd79ef1
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue