Browse Source

AdminController : correction filtre merchant sur les entités chargées dans les select des formulaires

reduction
Guillaume 4 years ago
parent
commit
34bff0f5ff
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      ShopBundle/Controller/Admin/AdminController.php

+ 1
- 2
ShopBundle/Controller/Admin/AdminController.php View File

$type = $child->getConfig()->getType()->getInnerType() ; $type = $child->getConfig()->getType()->getInnerType() ;


if($type instanceof EntityType) { if($type instanceof EntityType) {
$attributes = $child->getConfig()->getAttributes() ;
$passedOptions = $attributes['data_collector/passed_options'] ;
$passedOptions = $child->getConfig()->getOptions() ;
$classImplements = class_implements($passedOptions['class']) ; $classImplements = class_implements($passedOptions['class']) ;


if(in_array('App\Context\FilterHubInterface', $classImplements) || if(in_array('App\Context\FilterHubInterface', $classImplements) ||

Loading…
Cancel
Save