Bläddra i källkod

Correctif mineur

packProduct
Fabien Normand 3 år sedan
förälder
incheckning
2e931182e2
2 ändrade filer med 2 tillägg och 6 borttagningar
  1. +1
    -1
      Repository/File/DocumentRepositoryQuery.php
  2. +1
    -5
      Repository/File/DocumentStore.php

+ 1
- 1
Repository/File/DocumentRepositoryQuery.php Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara