Browse Source

Erreur 500 : PointSaleRepository::findOnePointSaleById()

feature/souke
Guillaume Bourgeois 10 months ago
parent
commit
24a7af9cf3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/logic/Order/Order/Repository/OrderRepository.php

+ 1
- 1
common/logic/Order/Order/Repository/OrderRepository.php View File

@@ -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…
Cancel
Save