mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 01:48:45 +01:00
MDL-23264 we need at least 2 multichoice answers
This commit is contained in:
parent
19735816b2
commit
c284a7701a
@ -435,7 +435,7 @@ class lesson_add_page_form_multichoice 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);
|
||||
$this->add_answer($i, NULL, ($i<2));
|
||||
$this->add_response($i);
|
||||
$this->add_jumpto($i);
|
||||
$this->add_score($i, null, ($i===0)?1:0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user