mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
Customer portal : Ordered languages in user preferences
SVN:trunk[4114]
This commit is contained in:
@@ -54,10 +54,13 @@ class PreferencesFormManager extends FormManager
|
||||
->SetCurrentValue(Dict::GetUserLanguage())
|
||||
->SetStartsWithNullChoice(false);
|
||||
// - Preparing choices
|
||||
$aChoices = array();
|
||||
foreach (Dict::GetLanguages() as $sCode => $aLanguage)
|
||||
{
|
||||
$oField->AddChoice($sCode, $aLanguage['description'] . ' (' . $aLanguage['localized_description'] . ')');
|
||||
$aChoices[$sCode] = $aLanguage['description'] . ' (' . $aLanguage['localized_description'] . ')';
|
||||
}
|
||||
asort($aChoices);
|
||||
$oField->SetChoices($aChoices);
|
||||
// - Adding to form
|
||||
$oForm->AddField($oField);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user