@ -101,6 +101,9 @@ class Attribute extends \yii\db\ActiveRecord
if (!$this->type) {
$this->type = self::TYPE_ATTR;
}
if (!$this->sort_order) {
$this->sort_order = "999";
return parent::beforeSave($insert); // TODO: Change the autogenerated stub
@ -238,7 +238,7 @@ class Goods extends \yii\db\ActiveRecord
$this->limit_count = 0;
$this->sort_order = 999;
@ -126,6 +126,9 @@ class ShopCategory extends \yii\db\ActiveRecord
if ($this->filter_attr != null && is_array($this->filter_attr)) {
$this->filter_attr = implode(',', $this->filter_attr);