[*] BO : fixed #PSTEST-1100

This commit is contained in:
lLefevre
2012-04-05 15:40:20 +00:00
parent c492457bf3
commit 7068c0c3e0

View File

@@ -292,8 +292,12 @@ class AdminLocalizationControllerCore extends AdminController
public function beforeUpdateOptions()
{
$lang = new Language((int)Tools::getValue('PS_LANG_DEFAULT'));
if (!$lang->active)
$this->errors[] = Tools::displayError('You cannot set this language as default language because it\'s disabled');
{
$lang->active = 1;
$lang->save();
}
}
public function updateOptionPsCurrencyDefault($value)