Permalink
Browse files

MDL-32641 Ensure that the form change protector does not kick in when…

… adding/editing feedback questions
  • Loading branch information...
1 parent b84eb3c commit 96c8f933fd71274ef11e2e315b733400754e9c38 @andrewnicols andrewnicols committed May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/feedback/edit_form.php
@@ -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
@@ -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',
'',

0 comments on commit 96c8f93

Please sign in to comment.