Browse Source

[Backend] Mise en mémoire des filtres

develop
Fab 3 years ago
parent
commit
d9805447d8
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 2
ShopBundle/Controller/Backend/AdminController.php View File

)); ));
$this->filtersForm->handleRequest($this->request); $this->filtersForm->handleRequest($this->request);
$easyadmin = $this->request->attributes->get('easyadmin'); $easyadmin = $this->request->attributes->get('easyadmin');

if (($this->filtersForm->isSubmitted() && $this->filtersForm->isValid()) || $this->entity[$easyadmin['view']]['filters']!==false) {
$view = $easyadmin['view'];
if($easyadmin['view']=='listChildren') $view = 'list';
if (($this->filtersForm->isSubmitted() && $this->filtersForm->isValid()) || $this->entity[$view]['filters']!==false) {
foreach ($listFields as $field) { foreach ($listFields as $field) {
//if ($this->filtersForm->has($field['property'])->getConfig()->getOption('AdminController')) { //if ($this->filtersForm->has($field['property'])->getConfig()->getOption('AdminController')) {
if ($this->filtersForm->has($field['property'])) { if ($this->filtersForm->has($field['property'])) {

Loading…
Cancel
Save