mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fixed Content Polymorphicrelation not set when creating ContentActiveRecord
This commit is contained in:
parent
55302f6d38
commit
0d7926288d
@ -166,6 +166,7 @@ class ContentActiveRecord extends ActiveRecord implements ContentOwner
|
||||
|
||||
if(!$content) {
|
||||
$content = $this->initContent = new Content();
|
||||
$content->setPolymorphicRelation($this);
|
||||
}
|
||||
|
||||
if(!$this->isRelationPopulated('content')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user