浏览代码

Correctif sortable

packProduct
Fabien Normand 3 年前
父节点
当前提交
c6c4f4ea40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Controller/Product/ProductFamilyAdminController.php

+ 1
- 1
Controller/Product/ProductFamilyAdminController.php 查看文件

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

正在加载...
取消
保存