Issue #1967112 followup by David_Rothstein, dawehner: HTML 5 validation breaks the cancel button in Views UI dialogs.
parent
d230ea6813
commit
fc7897f36b
|
@ -322,7 +322,7 @@ class ViewUI implements ViewStorageInterface {
|
||||||
'#value' => empty($form_state['ok_button']) ? t('Cancel') : t('Ok'),
|
'#value' => empty($form_state['ok_button']) ? t('Cancel') : t('Ok'),
|
||||||
'#submit' => array($cancel_submit),
|
'#submit' => array($cancel_submit),
|
||||||
'#validate' => array(),
|
'#validate' => array(),
|
||||||
'#attributes' => array('formnovalidate' => ''),
|
'#limit_validation_errors' => array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Compatibility, to be removed later: // TODO: When is "later"?
|
// Compatibility, to be removed later: // TODO: When is "later"?
|
||||||
|
|
Loading…
Reference in New Issue