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

This commit is contained in:
vSchoener
2012-03-05 16:14:44 +00:00
parent c936abbf8b
commit 643b214536
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()