mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
correcting display of datasetitems_form for multiple answers
This commit is contained in:
parent
305f5b4b1d
commit
4ace1db9bd
1 changed files with 7 additions and 7 deletions
|
@ -713,7 +713,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
|
||||||
} else {
|
} else {
|
||||||
$strheader .= $delimiter.$answer->answer;
|
$strheader .= $delimiter.$answer->answer;
|
||||||
}
|
}
|
||||||
$delimiter = ',';
|
$delimiter = '<br/><br/>';
|
||||||
}
|
}
|
||||||
return $strheader;
|
return $strheader;
|
||||||
}
|
}
|
||||||
|
@ -750,15 +750,15 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
|
||||||
$virtualqtype->get_tolerance_interval($calculated);
|
$virtualqtype->get_tolerance_interval($calculated);
|
||||||
if ($calculated->min === '') {
|
if ($calculated->min === '') {
|
||||||
// This should mean that something is wrong
|
// This should mean that something is wrong
|
||||||
$errors .= " -$calculated->answer";
|
$stranswers .= " -$calculated->answer".'<br/><br/>';
|
||||||
$stranswers .= $delimiter;
|
|
||||||
} else {
|
} else {
|
||||||
$stranswers .= $formula.' = '.$calculated->answer.'<br/>' ;
|
$stranswers .= $formula.' = '.$calculated->answer.'<br/>' ;
|
||||||
$strmin .= $delimiter.$calculated->min;
|
$stranswers .= $strmin. $delimiter.$calculated->min.'---';
|
||||||
$strmax .= $delimiter.$calculated->max;
|
$stranswers .= $strmax.$delimiter.$calculated->max;
|
||||||
|
$stranswers .='<br/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "$stranswers$strmin<br/>$strmax<br/>$errors";
|
return "$stranswers";
|
||||||
}
|
}
|
||||||
|
|
||||||
function tolerance_types() {
|
function tolerance_types() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue