Kaynağa Gözat

Erreur 500 : PointSaleRepository::findOnePointSaleById()

feature/souke
Guillaume Bourgeois 8 ay önce
ebeveyn
işleme
24a7af9cf3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      common/logic/Order/Order/Repository/OrderRepository.php

+ 1
- 1
common/logic/Order/Order/Repository/OrderRepository.php Dosyayı Görüntüle

@@ -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);

Yükleniyor…
İptal
Kaydet