MDL-23541 numerical fixed jump defaults

This commit is contained in:
Petr Skoda 2010-07-28 13:40:23 +00:00
parent cc6d233dd7
commit c72c3fc699

View File

@ -251,7 +251,7 @@ class lesson_add_page_form_numerical extends lesson_add_page_form_base {
$this->_form->addElement('header', 'answertitle'.$i, get_string('answer').' '.($i+1));
$this->add_answer($i, NULL, ($i < 1));
$this->add_response($i);
$this->add_jumpto($i);
$this->add_jumpto($i, NULL, ($i == 0 ? LESSON_NEXTPAGE : LESSON_THISPAGE));
$this->add_score($i, null, ($i===0)?1:0);
}
}