Skip to content
Snippets Groups Projects
Commit 3abc583d authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2904748 by volkswagenchick, loopduplicate, cilefen: Typo in Views UI

parent 7204a00a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -362,7 +362,7 @@ public function exposedFormAlter(&$form, FormStateInterface $form_state) {
public function exposedFormValidate(&$form, FormStateInterface $form_state) {
if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
$form_state->setErrorByName('offset', $this->t('Offset must be an number greater or equal than 0.'));
$form_state->setErrorByName('offset', $this->t('Offset must be a number greater than or equal to 0.'));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment