Commit 22bb0370 authored by alexpott's avatar alexpott

Issue #2336443 by almaudoh: NumericItemBase uses '#type' => 'textfield' for...

Issue #2336443 by almaudoh: NumericItemBase uses '#type' => 'textfield' for numeric 'min' and 'max' form fields.
parent d39c0147
......@@ -35,18 +35,16 @@ public function instanceSettingsForm(array $form, FormStateInterface $form_state
$settings = $this->getSettings();
$element['min'] = array(
'#type' => 'textfield',
'#type' => 'number',
'#title' => t('Minimum'),
'#default_value' => $settings['min'],
'#description' => t('The minimum value that should be allowed in this field. Leave blank for no minimum.'),
'#element_validate' => array('form_validate_number'),
);
$element['max'] = array(
'#type' => 'textfield',
'#type' => 'number',
'#title' => t('Maximum'),
'#default_value' => $settings['max'],
'#description' => t('The maximum value that should be allowed in this field. Leave blank for no maximum.'),
'#element_validate' => array('form_validate_number'),
);
$element['prefix'] = array(
'#type' => 'textfield',
......
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