Browse Source

后台商品分类表单父级字段删除本身数据

antshop
linyaostalker 5 years ago
parent
commit
0ba89c8c1e
  1. 2
      backend/modules/goods/views/category/_form.php

2
backend/modules/goods/views/category/_form.php

@ -17,7 +17,7 @@ use backend\modules\goods\models\ars\Category;
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn())) ?>
<?= $form->field($model, 'pid')->dropDownList(array_merge([0 => '一级分类'], Category::modelColumn($model->id))) ?>
<?= $form->field($model, 'sort_order')->textInput() ?>

Loading…
Cancel
Save