From 65656c537cd847d9e5074dab3f04aba526b1b0e8 Mon Sep 17 00:00:00 2001 From: gbateson Date: Fri, 20 Jun 2008 22:59:36 +0000 Subject: [PATCH] added hidden "summarysource" field when updating a HotPot. This fixes "undefined property" error from mod/hotpot/lib.php --- mod/hotpot/mod_form.php | 1 + 1 file changed, 1 insertion(+) 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'); -- 2.39.5