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',