浏览代码

[Backend] Mise en mémoire des filtres

develop
Fab 3 年前
父节点
当前提交
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'])) {

正在加载...
取消
保存