From: pichetp Date: Sun, 20 May 2007 12:39:01 +0000 (+0000) Subject: correcting display of datasetitems_form for multiple answers X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4ace1db9bd006f322a0bcf344bf142de6537f7c7;p=moodle.git correcting display of datasetitems_form for multiple answers --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 0d3c63298b..d36d043b18 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -713,7 +713,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype } else { $strheader .= $delimiter.$answer->answer; } - $delimiter = ','; + $delimiter = '

'; } return $strheader; } @@ -750,15 +750,15 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype $virtualqtype->get_tolerance_interval($calculated); if ($calculated->min === '') { // This should mean that something is wrong - $errors .= " -$calculated->answer"; - $stranswers .= $delimiter; + $stranswers .= " -$calculated->answer".'

'; } else { - $stranswers .= $formula.' = '.$calculated->answer. '
'; - $strmin .= $delimiter.$calculated->min; - $strmax .= $delimiter.$calculated->max; + $stranswers .= $formula.' = '.$calculated->answer.'
' ; + $stranswers .= $strmin. $delimiter.$calculated->min.'---'; + $stranswers .= $strmax.$delimiter.$calculated->max; + $stranswers .='
'; } } - return "$stranswers$strmin
$strmax
$errors"; + return "$stranswers"; } function tolerance_types() {