Commit 4da81e73 authored by tjhunt's avatar tjhunt
Browse files

MDL-11310 - Multichoice edititing form should have space for 5 answers by...

MDL-11310 - Multichoice edititing form should have space for 5 answers by default. Merged from MOODLE_18_STABLE.
parent 450802d3
......@@ -55,8 +55,7 @@ class question_edit_multichoice_form extends question_edit_form {
$countanswers = 0;
}
if ($this->question->formoptions->repeatelements){
$repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + QUESTION_NUMANS_ADD))?
QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD);
$repeatsatstart = max(5, QUESTION_NUMANS_START, $countanswers + QUESTION_NUMANS_ADD);
} else {
$repeatsatstart = $countanswers;
}
......
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