diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index fc8db07fc8e..19bac11ed37 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -1163,7 +1163,7 @@ class question_calculated_qtype extends default_questiontype { } // adding supplementary items $numbertoadd =0; - if (isset($fromform->addbutton) && $fromform->selectadd > 1 && $maxnumber < CALCULATEDQUESTIONMAXITEMNUMBER ) { + if (isset($fromform->addbutton) && $fromform->selectadd > 0 && $maxnumber < CALCULATEDQUESTIONMAXITEMNUMBER ) { $numbertoadd =$fromform->selectadd ; if ( $max100 - $maxnumber < $numbertoadd ) { $numbertoadd = $max100 - $maxnumber ;