瀏覽代碼

Erreur 500 : PointSaleRepository::findOnePointSaleById()

feature/souke
Guillaume Bourgeois 9 月之前
父節點
當前提交
24a7af9cf3
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      common/logic/Order/Order/Repository/OrderRepository.php

+ 1
- 1
common/logic/Order/Order/Repository/OrderRepository.php 查看文件

@@ -417,7 +417,7 @@ class OrderRepository extends AbstractRepository
$pointSale = null;
$arrayUserPointSale = $this->userPointSaleRepository->findUserPointSalesByUser($user, $distribution);

if (count($arrayUserPointSale) == 1) {
if (count($arrayUserPointSale) == 1 && $arrayUserPointSale[0]->id_point_sale) {
$pointSale = $this->pointSaleRepository->findOnePointSaleById($arrayUserPointSale[0]->id_point_sale);
} else {
$lastOrder = $this->findOneOrderLastByUser($user);

Loading…
取消
儲存