Browse Source

Correctif sortable

packProduct
Fabien Normand 3 years ago
parent
commit
c6c4f4ea40
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Controller/Product/ProductFamilyAdminController.php

+ 1
- 1
Controller/Product/ProductFamilyAdminController.php View File

@@ -20,7 +20,7 @@ abstract class ProductFamilyAdminController extends AbstractAdminController
$crud = parent::configureCrud($crud);

if($this->getRequestCrudAction() === ActionDefinition::SORT) {
$crud->setDefaultSort(['position' => 'DESC']);
$crud->setDefaultSort(['position' => 'ASC']);
}else{
$crud->setDefaultSort(['id' => 'DESC']);
}

Loading…
Cancel
Save