From 02cd0be02e6d7f6648fee431b72463b8234ccf84 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 1 Sep 2008 08:24:25 +0000 Subject: [PATCH] MDL-16125 "Improvement to Detailed Responses Report - Format of csv export" removing commas from table content which throw the csv export. --- mod/quiz/report/responses/responses_table.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/quiz/report/responses/responses_table.php b/mod/quiz/report/responses/responses_table.php index b410bfa0d6..7ae766873e 100644 --- a/mod/quiz/report/responses/responses_table.php +++ b/mod/quiz/report/responses/responses_table.php @@ -21,8 +21,6 @@ class quiz_report_responses_table extends table_sql { } function build_table(){ if ($this->rawdata) { - // Define some things we need later to process raw data from db. - $this->strtimeformat = get_string('strftimedatetime'); parent::build_table(); } } @@ -149,7 +147,7 @@ class quiz_report_responses_table extends table_sql { $questionid = $matches[1]; $question = $this->questions[$questionid]; $responses = get_question_actual_response($question, $statesforattempt[$questionid]); - $response = (!empty($responses)? implode(', ',$responses) : '-'); + $response = (!empty($responses)? implode('; ',$responses) : '-'); $grade = $statesforattempt[$questionid]->last_graded->grade / $this->questions[$questionid]->maxgrade; if (!$this->is_downloading()) { -- 2.39.5