]> git.koha-community.org Git - koha.git/commit
Bug 32775: Correctly display language order in sysprefs when you have multiple langua...
authorAlex Buckley <alexbuckley@catalyst.net.nz>
Wed, 1 Feb 2023 01:51:34 +0000 (14:51 +1300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 15 May 2023 21:23:53 +0000 (18:23 -0300)
commit36462c0c08637ad2c19652f8945cae804d13885a
tree83d9792cdb6b7e664e571a1c34d45ff118ff8010
parent565e150d1c272d0987878ae4de49eb6580d97c80
Bug 32775: Correctly display language order in sysprefs when you have multiple languages in a group

Test plan:
1. Apply first patch
2. Install en-NZ and another language - e.g. mi-NZ - so you have three
languages showing in your sysprefs en-NZ (selected), en (unselected) and
mi-NZ (selected)
3. Tick en-NZ and mi-NZ in language and OPACLanguages sysprefs. Order
en-NZ above mi-NZ and save
4. Refresh the syspref page and confirm mi-NZ is displaying above en-NZ,
even though you ordered en-NZ first
5. Refresh the syspref page multiple times and observe the order of the
languages changes
6. Apply this (second) patch
7. Restart plack
8. Refresh syspref page several times confirming that en-NZ is always
ordered first - as expected.

Sponsored-by: Kinder library, New Zealand
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Languages.pm