Merge pull request #4303 from humhub/fix/syntaxerrcomments

Fixed syntax error
This commit is contained in:
Lucas Bartholemy 2020-08-03 18:26:55 +02:00 committed by GitHub
commit c0ec93d3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
HumHub Changelog
================
1.6.1 (unreleased)
---------------------
1.6.1 (August 3, 2020)
----------------------
- Fix #4282: Sub-comment richtext menu dropdown does not hover main comment section
- Fix #4285: All ThirdParty modules are also marked with "Community"
- Fix #4287: Fixed Yii2 compatibility issue with MySQL 8+
- Fix #4303: Fixed syntax error in comment query
1.6.0 (July 29, 2020)

View File

@ -85,7 +85,7 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
// Delete sub comment (replies)
if ($this->object_model !== static::class) {
foreach (static::findAll(['object_model' => static::class, 'object_id' >= $this->id]) as $comment) {
foreach (static::findAll(['object_model' => static::class, 'object_id' => $this->id]) as $comment) {
$comment->delete();
}
}