From 0d7926288d958e28efef892f7a33fe3e14ddee80 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Wed, 27 Jun 2018 11:37:12 +0200 Subject: [PATCH] Fixed Content Polymorphicrelation not set when creating ContentActiveRecord --- .../humhub/modules/content/components/ContentActiveRecord.php | 1 + 1 file changed, 1 insertion(+) diff --git a/protected/humhub/modules/content/components/ContentActiveRecord.php b/protected/humhub/modules/content/components/ContentActiveRecord.php index 4faf774464..5b107a1c69 100644 --- a/protected/humhub/modules/content/components/ContentActiveRecord.php +++ b/protected/humhub/modules/content/components/ContentActiveRecord.php @@ -166,6 +166,7 @@ class ContentActiveRecord extends ActiveRecord implements ContentOwner if(!$content) { $content = $this->initContent = new Content(); + $content->setPolymorphicRelation($this); } if(!$this->isRelationPopulated('content')) {