Added default value in profile language select (current language)

This commit is contained in:
corpsee 2015-02-27 15:56:05 +06:00 committed by Tobias van Beek
parent a7b40ce176
commit 942127ffe6

View file

@ -123,6 +123,7 @@ class UserController extends Controller
$lang->setLabel(Lang::get('language'));
$lang->setRequired(true);
$lang->setOptions(Lang::getLanguageOptions());
$lang->setValue(Lang::getLanguage());
$form->addField($lang);
$submit = new Form\Element\Submit();