Browse Source

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

antshop
linyaostalker 5 years ago
parent
commit
faff0e4914
  1. 2
      backend/modules/goods/views/shop-category/_form.php

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

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

Loading…
Cancel
Save