diff --git a/backend/modules/goods/models/ars/Goods.php b/backend/modules/goods/models/ars/Goods.php index e8168dc..723b35a 100755 --- a/backend/modules/goods/models/ars/Goods.php +++ b/backend/modules/goods/models/ars/Goods.php @@ -237,6 +237,9 @@ class Goods extends \yii\db\ActiveRecord if (!$this->limit_count) { $this->limit_count = 0; } + if (!$this->sort_order) { + $this->sort_order = 999; + } return parent::beforeSave($insert); // TODO: Change the autogenerated stub }