From 8fe6a75de5f2e7fb0e229a1e37a1e5d5cdfa7b3e Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Fri, 29 Nov 2019 14:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=84=E6=A0=BC=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/antgoods/goods/src/controllers/AttributeController.php | 1 + vendor/antgoods/goods/src/models/searchs/AttributeSearch.php | 1 + 2 files changed, 2 insertions(+) diff --git a/vendor/antgoods/goods/src/controllers/AttributeController.php b/vendor/antgoods/goods/src/controllers/AttributeController.php index bc99f99..74aea6b 100644 --- a/vendor/antgoods/goods/src/controllers/AttributeController.php +++ b/vendor/antgoods/goods/src/controllers/AttributeController.php @@ -66,6 +66,7 @@ class AttributeController extends Controller public function actionCreate() { $model = new Attribute(); + $model->sort_order = 0; if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect('index'); diff --git a/vendor/antgoods/goods/src/models/searchs/AttributeSearch.php b/vendor/antgoods/goods/src/models/searchs/AttributeSearch.php index 4b353b1..2256a62 100644 --- a/vendor/antgoods/goods/src/models/searchs/AttributeSearch.php +++ b/vendor/antgoods/goods/src/models/searchs/AttributeSearch.php @@ -55,6 +55,7 @@ class AttributeSearch extends Attribute 'id', 'name', 'value', + 'sort_order', [ 'class' => 'iron\grid\ActionColumn', 'align' => 'center',