瀏覽代碼

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

Loading…
取消
儲存