Bug: 70676
Change-Id: Ic5246ea0ebfdff633092e2f99a179f31bd3eaa71
$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' ) );
}