Pārlūkot izejas kodu

Correctif sortable

packProduct
Fabien Normand pirms 3 gadiem
vecāks
revīzija
c6c4f4ea40
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      Controller/Product/ProductFamilyAdminController.php

+ 1
- 1
Controller/Product/ProductFamilyAdminController.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt