]> 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)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Mon, 5 Jun 2023 16:51:50 +0000 (16:51 +0000)
commit7cd7495f0d4b20e40869feddcb61df5636622c0f
treede058aa0fe130666c58cfd98c8f2721b50b27343
parent70942fc627e24ca3d33b087b3eee4f736b3a6275
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>
(cherry picked from commit 36462c0c08637ad2c19652f8945cae804d13885a)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
C4/Languages.pm