[-] BO : Fixed bug #PSTEST-937. Add new attributes to the forbidden list and fix the layout during the creation of a new country

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13852 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vSchoener
2012-03-05 16:14:44 +00:00
parent 2a924ae602
commit 21a4b6ea3e
2 changed files with 30 additions and 14 deletions
@@ -353,9 +353,11 @@ class AdminCountriesControllerCore extends AdminController
public function postProcess()
{
if (Tools::getValue('submitAdd'.$this->table))
$res = parent::postProcess();
if (Tools::getValue('submitAdd'.$this->table) && $res)
{
$id_country = Tools::getValue('id_country');
$id_country = ($id_country = Tools::getValue('id_country')) ? $id_country : $res['id'];
$tmp_addr_format = new AddressFormat($id_country);
$save_status = false;
@@ -389,7 +391,7 @@ class AdminCountriesControllerCore extends AdminController
unset($tmp_addr_format);
}
return parent::postProcess();
return $res;
}
protected function displayValidFields()