From: gbateson Date: Fri, 20 Jun 2008 22:59:36 +0000 (+0000) Subject: added hidden "summarysource" field when updating a HotPot. This fixes "undefined... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=65656c537cd847d9e5074dab3f04aba526b1b0e8;p=moodle.git added hidden "summarysource" field when updating a HotPot. This fixes "undefined property" error from mod/hotpot/lib.php --- diff --git a/mod/hotpot/mod_form.php b/mod/hotpot/mod_form.php index 7fbe3d305a..871634cf7b 100644 --- a/mod/hotpot/mod_form.php +++ b/mod/hotpot/mod_form.php @@ -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');