Browse Source

filterManager

develop
Charly 3 years ago
parent
commit
8add34eae2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Controller/AbstractAdminController.php

+ 2
- 2
Controller/AbstractAdminController.php View File

@@ -384,7 +384,7 @@ abstract class AbstractAdminController extends EaAbstractCrudController
)
);

$filterManager = $this->get('filter_manager');
$filterManager = $this->get(FilterManager::class);

$this->filtersForm->handleRequest($searchDto->getRequest());
/*if (($this->filtersForm->isSubmitted() && $this->filtersForm->isValid())) {
@@ -751,7 +751,7 @@ abstract class AbstractAdminController extends EaAbstractCrudController
$controller->configureFields($autocompleteContext['originatingPage'])
)->getByProperty($autocompleteContext['propertyName']);

$filterManager = $this->get('filter_manager');
$filterManager = $this->get(FilterManager::class);

$filterManager->applyFilter($queryBuilder, $field, $context->getRequest()->query->get('q'));
if ($filterManager->isRelationField($field->getProperty())) {

Loading…
Cancel
Save