Bug 15067: Follow up to fix sorting
It looks like C4::Languages:getLanguages relies on implicit database order for languages. They appear to be sorted by subtag so this patch adds that sorting to the database query to ensure the dropdown is sorted. Signed-off-by: Aleisha <aleishaamohia@hotmail.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ab270c026b
commit
83e899f8b1
|
|
@ -198,7 +198,7 @@ sub getLanguages {
|
|||
if ($lang) {
|
||||
$current_language = regex_lang_subtags($lang)->{'language'};
|
||||
}
|
||||
my $sth = $dbh->prepare('SELECT * FROM language_subtag_registry WHERE type=\'language\'');
|
||||
my $sth = $dbh->prepare('SELECT * FROM language_subtag_registry WHERE type=\'language\' ORDER BY description');
|
||||
$sth->execute();
|
||||
while (my $language_subtag_registry = $sth->fetchrow_hashref) {
|
||||
my $desc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue