add hidden "summarysource" field when updating HotPot. This fixes "undefined property" error from mod/hotpot/lib.php

This commit is contained in:
gbateson
2008-06-20 22:55:11 +00:00
parent cb41c95ace
commit b797f83e4f
+1
View 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');