[-] BO : fixed bug #PSCFV-5355 - issue in Carrier::delete() and Carrier::cleanPositions()
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ class CarrierCore extends ObjectModel
|
||||
{
|
||||
if (!parent::delete())
|
||||
return false;
|
||||
$this->cleanPositions();
|
||||
Carrier::cleanPositions();
|
||||
return (Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'cart_rule_carrier WHERE id_carrier = '.(int)$this->id) &&
|
||||
$this->deleteTaxRulesGroup(Shop::getShops(true, null, true)));
|
||||
|
||||
|
||||
@@ -566,6 +566,7 @@ class AdminCarriersControllerCore extends AdminController
|
||||
Warehouse::removeCarrier($id);
|
||||
}
|
||||
parent::postProcess();
|
||||
Carrier::cleanPositions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user