[*] 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user