// Clean order_detail_tax table after deleting an order detail #PSCFV-8278
This commit is contained in:
1 parent
564aafd10d
commit
d4d0661ff8
1 file changed
+11
-1
@@ -249,7 +249,17 @@ class OrderDetailCore extends ObjectModel
|
||||
$context = Context::getContext();
|
||||
$this->context = $context->cloneContext();
|
||||
}
|
||||
|
||||
|
||||
public function delete()
|
||||
{
|
||||
if(!$res = parent::delete())
|
||||
return false;
|
||||
|
||||
Db::getInstance()->delete('order_detail_tax', 'id_order_detail='.(int)$this->id);
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
protected function setContext($id_shop)
|
||||
{
|
||||
if ($this->context->shop->id != $id_shop)
|
||||
|
||||
Reference in new issue
Block a user