?
Related to # 4917
avatar brianteeman
brianteeman
23 Oct 2014

In issue #4679 fixed in #4690 @dkanchev reported an issue with the sorting of available languages in the admin login.

It looks like we have the same issue in the user manager when setting the default languages per user.

Front end User Profile Frontend and Backend Language

screen shot 2014-10-23 at 15 12 11

Back end User Profile Frontend and Backend Language

screen shot 2014-10-23 at 15 13 12

avatar brianteeman brianteeman - open - 23 Oct 2014
avatar brianteeman
brianteeman - comment - 23 Oct 2014

i assume that a similar fix would resolve this

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4907.

avatar dgt41
dgt41 - comment - 23 Oct 2014

@brianteeman can you insert $options = sort($options); at
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/language.php#L53

I don’t have many languages installed to test it :(

avatar brianteeman
brianteeman - comment - 23 Oct 2014

Sorry I do not have access to the server where the problem occurs right now

On 23 October 2014 21:41, Dimitri Grammatiko notifications@github.com
wrote:

@brianteeman https://github.com/brianteeman can you insert $options =
sort($options); at

https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/language.php#L53

I don’t have many languages installed to test it :(


Reply to this email directly or view it on GitHub
#4907 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar joomdonation
joomdonation - comment - 24 Oct 2014

@dgt41 : $options is a multidimensional arrays , so we could not use sort function.

I will make a PR to fix this issue now.

avatar dgt41
dgt41 - comment - 24 Oct 2014

@joomdonation how about:

        $options = array_merge(
            parent::getOptions(),
            sort(JLanguageHelper::createLanguageList($this->value, constant('JPATH_' . strtoupper($client)), true, true))
        );
avatar joomdonation
joomdonation - comment - 24 Oct 2014

@dgt41: That won't work, too because JLanguageHelper::createLanguageList returns multidimensional arrays. I made the PR #4917, look at the code and you will see how I fix it (actually, I use the same solution as in the PR ##4690 which was committed).

@brianteeman : Please help testing that PR as not many users can see that issue and it is difficult for them to test it (seems this issue only happens on some special cases).

avatar brianteeman
brianteeman - comment - 27 Oct 2014

Please see #4917

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4907.

avatar brianteeman brianteeman - close - 27 Oct 2014
avatar zero-24 zero-24 - close - 27 Oct 2014
avatar brianteeman brianteeman - change - 27 Oct 2014
Status New Closed
Rel_Number 4917
Relation Type Related to
avatar brianteeman brianteeman - change - 27 Oct 2014
Closed_Date 0000-00-00 00:00:00 2014-10-27 16:17:30
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment