From: Rohan Date: Sun, 14 Sep 2014 11:12:38 +0000 (+0530) Subject: Supress email validation on cancellation in SpecialChangeEmail X-Git-Tag: 1.31.0-rc.0~14016 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=74f52eba2b8379fcb3ab2313902e2413b5513b49;p=lhc%2Fweb%2Fwiklou.git Supress email validation on cancellation in SpecialChangeEmail Bug: 70676 Change-Id: Ic5246ea0ebfdff633092e2f99a179f31bd3eaa71 --- 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' ) ); }