From 7476b37f606641b7323e9660fbf565d7efc4741c Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 8 May 2018 15:17:39 +0100
Subject: [PATCH] Issue #2906298 by qzmenko, runeasgar: Comments per page
 number validation

---
 .../modules/comment/src/Plugin/Field/FieldType/CommentItem.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php b/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
index 3fd0cda57c9c..d6bbdd34538d 100644
--- a/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
+++ b/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
@@ -117,9 +117,8 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
       '#title' => t('Comments per page'),
       '#default_value' => $settings['per_page'],
       '#required' => TRUE,
-      '#min' => 10,
+      '#min' => 1,
       '#max' => 1000,
-      '#step' => 10,
     ];
     $element['anonymous'] = [
       '#type' => 'select',
-- 
GitLab