diff --git a/backend/modules/goods/views/category/_form.php b/backend/modules/goods/views/category/_form.php index 87b09b9..2d58dd8 100755 --- a/backend/modules/goods/views/category/_form.php +++ b/backend/modules/goods/views/category/_form.php @@ -17,7 +17,7 @@ use backend\modules\goods\models\ars\Category; field($model, 'name')->textInput(['maxlength' => true]) ?> - field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn())) ?> + field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn($model->id))) ?> field($model, 'sort_order')->textInput() ?>