Bugzilla – Attachment 123140 Details for
Bug 15067
Add additional languages to advanced search language search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15067: Follow up to fix sorting
Bug-15067-Follow-up-to-fix-sorting.patch (text/plain), 1.22 KB, created by
Nick Clemens (kidclamp)
on 2021-07-23 16:12:28 UTC
(
hide
)
Description:
Bug 15067: Follow up to fix sorting
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-07-23 16:12:28 UTC
Size:
1.22 KB
patch
obsolete
>From c35583cb2eb917d679685a2bab3222e1797f32e9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 25 Jan 2016 20:47:27 +0000 >Subject: [PATCH] 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> >--- > C4/Languages.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Languages.pm b/C4/Languages.pm >index b9c7e6dce9..c05c31bf9e 100644 >--- a/C4/Languages.pm >+++ b/C4/Languages.pm >@@ -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; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15067
:
47076
|
47279
|
47280
|
47285
|
47286
|
47287
|
84122
|
84124
|
86122
|
89642
|
121239
|
121240
|
121241
|
121260
|
121261
|
121262
| 123140 |
123141
|
123142
|
123143
|
128105
|
128112