瀏覽代碼

Correctif mineur

packProduct
Fabien Normand 3 年之前
父節點
當前提交
2e931182e2
共有 2 個檔案被更改,包括 2 行新增6 行删除
  1. +1
    -1
      Repository/File/DocumentRepositoryQuery.php
  2. +1
    -5
      Repository/File/DocumentStore.php

+ 1
- 1
Repository/File/DocumentRepositoryQuery.php 查看文件

@@ -10,7 +10,7 @@ use Lc\SovBundle\Repository\AbstractRepositoryQuery;

class DocumentRepositoryQuery extends AbstractRepositoryQuery
{
use SectionRepositoryQueryTrait;
use MerchantRepositoryQueryTrait;

public function __construct(DocumentRepository $repository, PaginatorInterface $paginator)
{

+ 1
- 5
Repository/File/DocumentStore.php 查看文件

@@ -11,7 +11,6 @@ use Lc\SovBundle\Repository\RepositoryQueryInterface;

class DocumentStore extends AbstractStore
{
use SectionStoreTrait;
use MerchantStoreTrait;

protected DocumentRepositoryQuery $query;
@@ -31,12 +30,9 @@ class DocumentStore extends AbstractStore
{
$query->filterIsOnlineAndOffline();

if(isset($this->section) && $this->section) {
$query->filterBySection($this->section);
}

if(isset($this->merchant) && $this->merchant) {
$query->filterByMerchantViaSection($this->merchant);
$query->filterByMerchant($this->merchant);
}

return $query;

Loading…
取消
儲存