- Fixed multiple ContentTag afterSave definition

- Fixed missing import in DashboardStreamAction
This commit is contained in:
buddh4 2018-06-21 18:01:49 +02:00
parent 269cec204e
commit e8c0cdc7cb
2 changed files with 1 additions and 11 deletions

View File

@ -213,17 +213,6 @@ class ContentTag extends ActiveRecord
return parent::validate($attributeNames, $clearErrors);
}
/**
* @inheritdoc
*/
public function afterSave($insert, $changedAttributes)
{
if($this->hasAddition()) {
$this->getAddition()->save();
}
parent::afterSave($insert, $changedAttributes);
}
public function load($data, $formName = null)
{
if($this->hasAddition()) {

View File

@ -10,6 +10,7 @@ namespace humhub\modules\dashboard\components\actions;
use Yii;
use yii\db\Query;
use humhub\modules\dashboard\Module;
use humhub\modules\activity\actions\ActivityStreamAction;
use humhub\modules\user\models\User;
use humhub\modules\space\models\Space;