]> git.mjollnir.org Git - moodle.git/commitdiff
added hidden "summarysource" field when updating a HotPot. This fixes "undefined...
authorgbateson <gbateson>
Fri, 20 Jun 2008 22:59:36 +0000 (22:59 +0000)
committergbateson <gbateson>
Fri, 20 Jun 2008 22:59:36 +0000 (22:59 +0000)
mod/hotpot/mod_form.php

index 7fbe3d305aa00f81bb7695788a9c2d3a0f28152e..871634cf7b17dffa948da0c909bd7ba83e802e38 100644 (file)
@@ -115,6 +115,7 @@ class mod_hotpot_mod_form extends moodleform_mod {
             $mform->setAdvanced('summary_elements');
         } else {
             // existing HotPot
+            $mform->addElement('hidden', 'summarysource', HOTPOT_TEXTSOURCE_SPECIFIC);
             $mform->addElement('htmleditor', 'summary', get_string('summary'));
             $mform->setType('summary', PARAM_RAW);
             $mform->setHelpButton('summary', array('writing', 'questions', 'richtext'), false, 'editorhelpbutton');