Commit 7476b37f authored by alexpott's avatar alexpott

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

parent 92b48447
...@@ -117,9 +117,8 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) { ...@@ -117,9 +117,8 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
'#title' => t('Comments per page'), '#title' => t('Comments per page'),
'#default_value' => $settings['per_page'], '#default_value' => $settings['per_page'],
'#required' => TRUE, '#required' => TRUE,
'#min' => 10, '#min' => 1,
'#max' => 1000, '#max' => 1000,
'#step' => 10,
]; ];
$element['anonymous'] = [ $element['anonymous'] = [
'#type' => 'select', '#type' => 'select',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment