Supress email validation on cancellation in SpecialChangeEmail
authorRohan <rohan1395@yahoo.com>
Sun, 14 Sep 2014 11:12:38 +0000 (16:42 +0530)
committerJdlrobson <jrobson@wikimedia.org>
Mon, 15 Sep 2014 16:12:21 +0000 (16:12 +0000)
Bug: 70676
Change-Id: Ic5246ea0ebfdff633092e2f99a179f31bd3eaa71

includes/specials/SpecialChangeEmail.php

index d3e7398..a3b02f5 100644 (file)
@@ -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' ) );
        }