From 74f52eba2b8379fcb3ab2313902e2413b5513b49 Mon Sep 17 00:00:00 2001 From: Rohan Date: Sun, 14 Sep 2014 16:42:38 +0530 Subject: [PATCH] Supress email validation on cancellation in SpecialChangeEmail Bug: 70676 Change-Id: Ic5246ea0ebfdff633092e2f99a179f31bd3eaa71 --- includes/specials/SpecialChangeEmail.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialChangeEmail.php b/includes/specials/SpecialChangeEmail.php index d3e7398c84..a3b02f57e8 100644 --- a/includes/specials/SpecialChangeEmail.php +++ b/includes/specials/SpecialChangeEmail.php @@ -111,7 +111,9 @@ class SpecialChangeEmail extends FormSpecialPage { $form->setTableId( 'mw-changeemail-table' ); $form->setWrapperLegendMsg( 'changeemail-header' ); $form->setSubmitTextMsg( 'changeemail-submit' ); - $form->addButton( 'wpCancel', $this->msg( 'changeemail-cancel' )->text() ); + $form->addButton( 'wpCancel', $this->msg( 'changeemail-cancel' )->text(), + null, array( 'formnovalidate') + ); $form->addHiddenField( 'returnto', $this->getRequest()->getVal( 'returnto' ) ); } -- 2.20.1