]> git.koha-community.org Git - koha.git/commit
Bug 12616: Locale in subscriptions not preselecting correctly
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Wed, 17 Jun 2015 16:22:49 +0000 (13:22 -0300)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 16 Jul 2015 09:52:36 +0000 (09:52 +0000)
commit16efb376e6dda5f3fa819fe5d4a53f555262a1ea
tree9294eaea563bb36e3ae490e4e64652b73b963f0c
parente80e4294647cf58f3d4b3cb9a8cc21d1033871a0
Bug 12616: Locale in subscriptions not preselecting correctly

There is a problem if a language is present but
don't have ISO639-2 code. Locale pulldown on serial
suscription is malformed.

To reproduce on master:
a) remove some entries on language_rfc4646_to_iso639
b) go to Serials > New suscription
c) Put any value on Vendor and record, press Next>>
d) Look at locale pulldown, it must default to last
removed lang from a), also other langs has no value
and are also 'selected' on html

To test:
1) Reproduce the problem
2) Apply the patch
3) Add New suscription, pulldown must be fixed

NOTE: Deleted Urdu and Chinese.
      Master had both "selected" in the HTML.
      Applied patch, neither were added.
      Defaults to first item, which is blank meaning English.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit b9c4061479235d0d79ecbd917b015db5441d8118)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/Languages.pm