Skip to content

Commit

Permalink
removed order domain advanced filter
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin committed Sep 21, 2023
1 parent ca8a072 commit 824e3e4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCityFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCreateDateFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderDomainFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderEmailFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderLastNameFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderNameFilter;
Expand All @@ -26,7 +25,6 @@ public function __construct()
$this->addFilterTranslation(OrderNumberFilter::NAME, t('Order number'));
$this->addFilterTranslation(OrderCreateDateFilter::NAME, t('Created on'));
$this->addFilterTranslation(OrderPriceFilterWithVatFilter::NAME, t('Price including VAT'));
$this->addFilterTranslation(OrderDomainFilter::NAME, t('Domain'));
$this->addFilterTranslation(OrderStatusFilter::NAME, t('Status of order'));
$this->addFilterTranslation(OrderProductFilter::NAME, t('Product in order'));
$this->addFilterTranslation(OrderPhoneNumberFilter::NAME, t('Customer phone number'));
Expand Down
11 changes: 1 addition & 10 deletions src/Model/AdvancedSearch/OrderAdvancedSearchConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

namespace Shopsys\FrameworkBundle\Model\AdvancedSearch;

use Shopsys\FrameworkBundle\Component\Domain\Domain;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCityFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCreateDateFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderDomainFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderEmailFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderLastNameFilter;
use Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderNameFilter;
Expand All @@ -24,7 +22,6 @@ class OrderAdvancedSearchConfig extends AdvancedSearchConfig
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderNumberFilter $orderNumberFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCreateDateFilter $orderCreateDateFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderPriceFilterWithVatFilter $orderPriceFilterWithVatFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderDomainFilter $orderDomainFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderStatusFilter $orderStatusFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderProductFilter $orderProductFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderPhoneNumberFilter $orderPhoneNumberFilter
Expand All @@ -33,13 +30,12 @@ class OrderAdvancedSearchConfig extends AdvancedSearchConfig
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderLastNameFilter $orderLastNameFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderEmailFilter $orderEmailFilter
* @param \Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter\OrderCityFilter $orderCityFilter
* @param \Shopsys\FrameworkBundle\Component\Domain\Domain $domain
* @throws \Shopsys\FrameworkBundle\Model\AdvancedSearch\Exception\AdvancedSearchFilterAlreadyExistsException
*/
public function __construct(
OrderNumberFilter $orderNumberFilter,
OrderCreateDateFilter $orderCreateDateFilter,
OrderPriceFilterWithVatFilter $orderPriceFilterWithVatFilter,
OrderDomainFilter $orderDomainFilter,
OrderStatusFilter $orderStatusFilter,
OrderProductFilter $orderProductFilter,
OrderPhoneNumberFilter $orderPhoneNumberFilter,
Expand All @@ -48,18 +44,13 @@ public function __construct(
OrderLastNameFilter $orderLastNameFilter,
OrderEmailFilter $orderEmailFilter,
OrderCityFilter $orderCityFilter,
Domain $domain,
) {
parent::__construct();

$this->registerFilter($orderPriceFilterWithVatFilter);
$this->registerFilter($orderNumberFilter);
$this->registerFilter($orderCreateDateFilter);
$this->registerFilter($orderStatusFilter);

if ($domain->isMultidomain()) {
$this->registerFilter($orderDomainFilter);
}
$this->registerFilter($orderProductFilter);
$this->registerFilter($orderNameFilter);
$this->registerFilter($orderLastNameFilter);
Expand Down
81 changes: 0 additions & 81 deletions src/Model/AdvancedSearchOrder/Filter/OrderDomainFilter.php

This file was deleted.

0 comments on commit 824e3e4

Please sign in to comment.