Просмотр исходного кода

[Backend] Mise en mémoire des filtres

develop
Fab 3 лет назад
Родитель
Сommit
d9805447d8
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 2
ShopBundle/Controller/Backend/AdminController.php Просмотреть файл

@@ -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'])) {

Загрузка…
Отмена
Сохранить