Pārlūkot izejas kodu

Correctif erreur reduction deco

develop
Fab pirms 3 gadiem
vecāks
revīzija
49b5685a38
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      ShopBundle/Repository/ReductionCatalogRepository.php

+ 3
- 0
ShopBundle/Repository/ReductionCatalogRepository.php Parādīt failu

@@ -60,6 +60,9 @@ class ReductionCatalogRepository extends BaseRepository implements DefaultReposi
$query->andWhere(':groupUser MEMBER OF e.groupUsers OR e.groupUsers is empty');
$query->setParameter('user', $user);
$query->setParameter('groupUser', $user->getGroupUsers());
}else{
$query->andWhere('e.users is empty');
$query->andWhere('e.groupUsers is empty');
}

$query->andWhere(':productFamily MEMBER OF e.productFamilies OR e.productFamilies is empty');

Notiek ielāde…
Atcelt
Saglabāt