Sfoglia il codice sorgente

[Backend] Mise en mémoire des filtres

develop
Fab 3 anni fa
parent
commit
d9805447d8
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      ShopBundle/Controller/Backend/AdminController.php

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

@@ -194,8 +194,9 @@ class AdminController extends EasyAdminController
));
$this->filtersForm->handleRequest($this->request);
$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) {
//if ($this->filtersForm->has($field['property'])->getConfig()->getOption('AdminController')) {
if ($this->filtersForm->has($field['property'])) {

Loading…
Annulla
Salva