Bladeren bron

Correctif mineur

packProduct
Fabien Normand 3 jaren geleden
bovenliggende
commit
2e931182e2
2 gewijzigde bestanden met toevoegingen van 2 en 6 verwijderingen
  1. +1
    -1
      Repository/File/DocumentRepositoryQuery.php
  2. +1
    -5
      Repository/File/DocumentStore.php

+ 1
- 1
Repository/File/DocumentRepositoryQuery.php Bestand weergeven

@@ -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 Bestand weergeven

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

Laden…
Annuleren
Opslaan