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