From d68c636359c65089a10ead606342d7024a715c96 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 24 Feb 2015 13:15:59 +0100 Subject: [PATCH] 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 --- library/Icinga/Web/Wizard.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index 0ef9b8212..d25cd56e5 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -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(