Browse Source

Correctif

develop
Fabien Normand 2 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

@@ -151,6 +151,8 @@ abstract class AbstractAdminController extends EaAbstractCrudController

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

return $crud;

Loading…
Cancel
Save