Update classes/Manufacturer.php
Fixed issue with not being able to remove manufacturers if they where missing an address. (Possible after an upgrade)
This commit is contained in:
1 parent
9a231ac737
commit
09f5879851
1 file changed
+1
-1
@@ -110,7 +110,7 @@ class ManufacturerCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$address = new Address($this->id_address);
|
$address = new Address($this->id_address);
|
||||||
|
|
||||||
if (!$address->delete())
|
if (Validate::isLoadedObject($address) AND !$address->delete())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (parent::delete())
|
if (parent::delete())
|
||||||
|
|||||||
Reference in new issue
Block a user