Browse Source

修改规格管理列表字段

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
8fe6a75de5
  1. 1
      vendor/antgoods/goods/src/controllers/AttributeController.php
  2. 1
      vendor/antgoods/goods/src/models/searchs/AttributeSearch.php

1
vendor/antgoods/goods/src/controllers/AttributeController.php

@ -66,6 +66,7 @@ class AttributeController extends Controller
public function actionCreate() public function actionCreate()
{ {
$model = new Attribute(); $model = new Attribute();
$model->sort_order = 0;
if ($model->load(Yii::$app->request->post()) && $model->save()) { if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect('index'); return $this->redirect('index');

1
vendor/antgoods/goods/src/models/searchs/AttributeSearch.php

@ -55,6 +55,7 @@ class AttributeSearch extends Attribute
'id', 'id',
'name', 'name',
'value', 'value',
'sort_order',
[ [
'class' => 'iron\grid\ActionColumn', 'class' => 'iron\grid\ActionColumn',
'align' => 'center', 'align' => 'center',

Loading…
Cancel
Save