mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
- Fixed multiple ContentTag afterSave
definition
- Fixed missing import in DashboardStreamAction
This commit is contained in:
parent
269cec204e
commit
e8c0cdc7cb
@ -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()) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user