Wizard: Disable the browser's form validation when navigating back

formnovalidate... The fukin awesomeness of HTML5 is sometimes
even impressing a god-damned h4x0r like me.

fixes #8507
This commit is contained in:
Johannes Meyer 2015-02-24 13:15:59 +01:00
parent d4dc0177c0
commit d68c636359
1 changed files with 10 additions and 8 deletions

View File

@ -612,10 +612,11 @@ class Wizard
'button',
static::BTN_PREV,
array(
'type' => 'submit',
'value' => $pages[$index - 1]->getName(),
'label' => t('Back'),
'decorators' => array('ViewHelper')
'type' => 'submit',
'value' => $pages[$index - 1]->getName(),
'label' => t('Back'),
'decorators' => array('ViewHelper'),
'formnovalidate' => 'formnovalidate'
)
);
$page->addElement(
@ -633,10 +634,11 @@ class Wizard
'button',
static::BTN_PREV,
array(
'type' => 'submit',
'value' => $pages[$index - 1]->getName(),
'label' => t('Back'),
'decorators' => array('ViewHelper')
'type' => 'submit',
'value' => $pages[$index - 1]->getName(),
'label' => t('Back'),
'decorators' => array('ViewHelper'),
'formnovalidate' => 'formnovalidate'
)
);
$page->addElement(