Commit 4501ee4b authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-48965' of git://github.com/jmvedrine/moodle

parents f5526fdf 400fa4a1
......@@ -337,7 +337,8 @@ class lesson_add_page_form_shortanswer extends lesson_add_page_form_base {
for ($i = 0; $i < $this->_customdata['lesson']->maxanswers; $i++) {
$this->_form->addElement('header', 'answertitle'.$i, get_string('answer').' '.($i+1));
$this->add_answer($i);
// Only first answer is required.
$this->add_answer($i, null, ($i < 1));
$this->add_response($i);
$this->add_jumpto($i, null, ($i == 0 ? LESSON_NEXTPAGE : LESSON_THISPAGE));
$this->add_score($i, null, ($i===0)?1:0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment