瀏覽代碼

Correctif erreur reduction deco

develop
Fab 3 年之前
父節點
當前提交
49b5685a38
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      ShopBundle/Repository/ReductionCatalogRepository.php

+ 3
- 0
ShopBundle/Repository/ReductionCatalogRepository.php 查看文件

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

Loading…
取消
儲存