瀏覽代碼

Correctif annulation/suppression commande : événement OrderDeleteEvent non déclenché

feature/rotating_product
Guillaume Bourgeois 5 月之前
父節點
當前提交
260cc9d191
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      domain/Order/Order/OrderManager.php

+ 2
- 2
domain/Order/Order/OrderManager.php 查看文件

@@ -76,12 +76,12 @@ class OrderManager extends AbstractService implements ManagerInterface
|| $force) {

$this->changeOrderStatus($order, OrderStatus::ALIAS_DELETED, $user);
$return = true;
}
// cancel
elseif ($this->producerSolver->getConfig('option_behavior_cancel_order') == Producer::BEHAVIOR_DELETE_ORDER_STATUS) {
$this->changeOrderStatus($order, OrderStatus::ALIAS_CANCELED, $user);
$this->orderBuilder->update($order);
$return = true;
}

if($return) {

Loading…
取消
儲存