Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ public static function onSampleDataInstall($event)

$comment = new \humhub\modules\comment\models\Comment();
$comment->message = Yii::t('PollsModule.base', "Why don't we go to Bemelmans Bar?");
$comment->object_model = $poll->className();
$comment->object_id = $poll->getPrimaryKey();
$comment->content_id = $poll->content->id;
$comment->save();

// Switch Identity
Expand All @@ -155,8 +154,7 @@ public static function onSampleDataInstall($event)

$comment = new \humhub\modules\comment\models\Comment();
$comment->message = Yii::t('PollsModule.base', "Again? :weary:");
$comment->object_model = $poll->className();
$comment->object_id = $poll->getPrimaryKey();
$comment->content_id = $poll->content->id;
$comment->save();

// Switch Identity
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.5.1 (Unreleased)
------------------
- Fix #175: Error creating installer sample content (comment no longer uses removed `object_model`/`object_id` properties)

1.5.0 (June 5, 2026)
--------------------
- Enh #174: Update for HumHub 1.19
Expand Down
Loading