Commit 4d02ee3c authored by webchick's avatar webchick

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

parent 0c1777a9
......@@ -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"?
......
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