Преглед изворни кода

Mis à jour import & correctif

packProduct
Fabien Normand пре 3 година
родитељ
комит
36b509dfed
3 измењених фајлова са 4 додато и 2 уклоњено
  1. +1
    -1
      Controller/AdminControllerTrait.php
  2. +2
    -0
      Controller/Ticket/TicketAdminController.php
  3. +1
    -1
      Model/Ticket/TicketModel.php

+ 1
- 1
Controller/AdminControllerTrait.php Прегледај датотеку

@@ -81,7 +81,7 @@ trait AdminControllerTrait
$repositoryQuery->filterBySection($sectionCurrent);
}

if ($this->isOutOfSection() && $this->isInstanceOf(FilterSectionInterface::class)) {
if ($this->isOutOfSection() && $this->isInstanceOf(FilterSectionInterface::class) && !$this->isInstanceOf(FilterMerchantInterface::class)) {
$repositoryQuery->filterByMerchantViaSection($this->getMerchantCurrent());
}


+ 2
- 0
Controller/Ticket/TicketAdminController.php Прегледај датотеку

@@ -3,6 +3,7 @@
namespace Lc\CaracoleBundle\Controller\Ticket;

use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use Lc\CaracoleBundle\Controller\AdminControllerTrait;
use Lc\CaracoleBundle\Definition\ActionDefinition;
use Lc\SovBundle\Controller\Ticket\TicketAdminController as SovTicketAdminController;
@@ -40,4 +41,5 @@ abstract class TicketAdminController extends SovTicketAdminController

return $actions;
}

}

+ 1
- 1
Model/Ticket/TicketModel.php Прегледај датотеку

@@ -13,7 +13,7 @@ use Lc\SovBundle\Model\Ticket\TicketModel as SovTicketModel;
/**
* @ORM\MappedSuperclass()
*/
abstract class TicketModel extends SovTicketModel implements FilterSectionInterface
abstract class TicketModel extends SovTicketModel implements FilterSectionInterface, FilterMerchantInterface
{
const TYPE_PRODUCT_UNAVAILABLE = 'product-unavailable';
const TYPE_PRODUCT_ERROR = 'product-error';

Loading…
Откажи
Сачувај