[*] BO : fixed #PSTEST-1100

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14503 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-04-05 15:40:20 +00:00
parent a5b32d01f5
commit 472607e14e
@@ -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)