Skip to content

Commit

Permalink
MDL-32641 Ensure that the form change protector does not kick in when…
Browse files Browse the repository at this point in the history
… adding/editing feedback questions
  • Loading branch information
Andrew Robert Nicols committed May 10, 2012
1 parent b84eb3c commit 96c8f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/feedback/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function definition() {
// visible elements
$feedback_names_options = feedback_load_feedback_items_options();

$attributes = 'onChange="this.form.submit()"';
$attributes = 'onChange="M.core_formchangechecker.set_form_submitted(); this.form.submit()"';
$mform->addElement('select', 'typ', '', $feedback_names_options, $attributes);

// hidden elements
Expand Down Expand Up @@ -113,7 +113,7 @@ public function set_form_elements() {
$options[get_string('public', 'feedback')] = $publicoptions;
}

$attributes = 'onChange="this.form.submit()"';
$attributes = 'onChange="M.core_formchangechecker.set_form_submitted(); this.form.submit()"';
$elementgroup[] = $mform->createElement('selectgroups',
'templateid',
'',
Expand Down

0 comments on commit 96c8f93

Please sign in to comment.