Permalink
Browse files

add hidden "summarysource" field when updating HotPot. This fixes "un…

…defined property" error from mod/hotpot/lib.php
  • Loading branch information...
1 parent cb41c95 commit b797f83e4f2d3080d1fca6d5339bc349dc181953 gbateson committed Jun 20, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/hotpot/mod_form.php
View
@@ -115,6 +115,7 @@ function definition() {
$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');

0 comments on commit b797f83

Please sign in to comment.