瀏覽代碼

Corrctif statuts de commande

feature/rotating_product
Guillaume Bourgeois 5 月之前
父節點
當前提交
7f0cdb9b78
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      domain/Order/Order/OrderManager.php

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

@@ -51,7 +51,9 @@ class OrderManager extends AbstractService implements ManagerInterface
$orderStatus = $this->orderStatusRepository->getOrderStatusByAlias($orderStatusAlias);

$order->setOrderStatus($orderStatus);
$this->orderBuilder->initDateUpdate($order);
if(!$this->orderSolver->isOrderStatusOrdered($order)) {
$this->orderBuilder->initDateUpdate($order);
}
$this->orderBuilder->update($order);

$this->orderStatusHistoryManager->create(

Loading…
取消
儲存