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

Issue #1967112 by nod_: Fixed HTML 5 validation breaks the cancel button in Views UI dialogs.

parent 0c1777a9
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
......@@ -322,6 +322,7 @@ public function getStandardButtons(&$form, &$form_state, $form_id, $name = NULL)
'#value' => empty($form_state['ok_button']) ? t('Cancel') : t('Ok'),
'#submit' => array($cancel_submit),
'#validate' => array(),
'#attributes' => array('formnovalidate' => ''),
);
// Compatibility, to be removed later: // TODO: When is "later"?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment