-
Sub-task
-
Resolution: Fixed
-
Minor
-
None
-
1.8
-
None
-
MOODLE_18_STABLE
In datasetitems_form.php there is a validation so back to quiz is not allowed if there is no items
function validation($data){
$errors = array();
if (isset($data['backtoquiz']) && ($this->noofitems===0))
return $errors;
}
line 204 is written
if (isset($data['backtoquiz']) && ($this->noofitems===0)){
the test is not working properly with the identity === but works correctly with equal ==
if (isset($data['backtoquiz']) && ($this->noofitems==0)){