[-] BO : BugFix : Admin suppliers errors message (add) & Admin attributes add / update fix

This commit is contained in:
François Gaillard
2011-12-27 10:40:32 +00:00
parent e8066f4d80
commit 93df3eee13
3 changed files with 26 additions and 8 deletions
@@ -327,7 +327,7 @@ class AdminSuppliersControllerCore extends AdminController
if (Tools::isSubmit('submitAdd'.$this->table))
{
if (!($obj = $this->loadObject(true)))
if (Tools::isSubmit('id_supplier') && !($obj = $this->loadObject(true)))
return;
// updates/creates address if it does not exist