Permalink
Browse files

MDL-33143 wiki-2.0 : wiki edit form will have mform1 as id for JS to …

…work
  • Loading branch information...
1 parent 5a5cdaf commit d598040a983a2d3837f65065ca5c6cbe73d14ceb @rajeshtaneja rajeshtaneja committed May 22, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/wiki/edit_form.php
View
3 mod/wiki/edit_form.php
@@ -39,6 +39,9 @@ protected function definition() {
global $CFG;
$mform = $this->_form;
+ // BEWARE HACK: In order for things to work we need to override the form id and set it to mform1.
+ // The first form to be instantiated never gets displayed so this should be safe.
+ $mform->updateAttributes(array('id' => 'mform1'));
$version = $this->_customdata['version'];
$format = $this->_customdata['format'];

0 comments on commit d598040

Please sign in to comment.