1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2021-07-16 11:11:27 -04:00
parent c82a9810c2
commit 8961001001

View File

@@ -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 {