mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 18:55:56 +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) {
|
if($parent) {
|
||||||
// validate that depth is in allowed limit
|
// validate that depth is in allowed limit
|
||||||
$parents = $this->commentsField->getCommentParents($this->page, $comment);
|
$parents = $this->commentsField->getCommentParents($this->page, $comment);
|
||||||
if($parents->count() >= $maxDepth) {
|
if($parents->count() > $maxDepth) {
|
||||||
if($parent->parent_id) {
|
if($parent->parent_id) {
|
||||||
$comment->parent_id = $parent->parent_id;
|
$comment->parent_id = $parent->parent_id;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user