mirror of
https://github.com/humhub/humhub.git
synced 2025-02-12 03:26:25 +01:00
Merge pull request #4303 from humhub/fix/syntaxerrcomments
Fixed syntax error
This commit is contained in:
commit
c0ec93d3be
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user