Issue #2906298 by qzmenko, runeasgar: Comments per page number validation

merge-requests/1654/head
Alex Pott 2018-05-08 15:17:39 +01:00
parent 92b48447a6
commit 7476b37f60
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 1 additions and 2 deletions

View File

@ -117,9 +117,8 @@ class CommentItem extends FieldItemBase implements CommentItemInterface {
'#title' => t('Comments per page'),
'#default_value' => $settings['per_page'],
'#required' => TRUE,
'#min' => 10,
'#min' => 1,
'#max' => 1000,
'#step' => 10,
];
$element['anonymous'] = [
'#type' => 'select',