mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#1387
This commit is contained in:
@@ -886,7 +886,7 @@ class CommentForm extends Wire implements CommentFormInterface {
|
||||
if($parent) {
|
||||
// validate that depth is in allowed limit
|
||||
$parents = $this->commentsField->getCommentParents($this->page, $comment);
|
||||
if($parents->count() >= $maxDepth) {
|
||||
if($parents->count() > $maxDepth) {
|
||||
if($parent->parent_id) {
|
||||
$comment->parent_id = $parent->parent_id;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user