Browse Source

Correctif

feature/symfony6.1
Fabien Normand 3 years ago
parent
commit
f5f1a4f298
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Controller/AbstractAdminController.php

+ 2
- 0
Controller/AbstractAdminController.php View File



if ($this->isInstanceOf(SortableInterface::class)) { if ($this->isInstanceOf(SortableInterface::class)) {
$crud->setDefaultSort(['position' => 'ASC']); $crud->setDefaultSort(['position' => 'ASC']);
}else{
$crud->setDefaultSort(['id' => 'DESC']);
} }


return $crud; return $crud;

Loading…
Cancel
Save