From ee990b193a61442aa3bc8f64e1480b752d44fffb Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 15 Apr 2002 05:22:43 +0000 Subject: [PATCH] Fixed download for virtual scale questions with type = -1 (eg ATTLS) --- mod/survey/download.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/survey/download.php b/mod/survey/download.php index 83fc25635b..adbf6dd793 100644 --- a/mod/survey/download.php +++ b/mod/survey/download.php @@ -115,7 +115,7 @@ } foreach ($order as $key => $qid) { $question = $questions["$qid"]; - if ($question->type == "0" || $question->type == "1" || $question->type == "3") { + if ($question->type == "0" || $question->type == "1" || $question->type == "3" || $question->type == "-1") { $myxls->InsertText("$question->text"); } if ($question->type == "2" || $question->type == "3") { @@ -147,7 +147,7 @@ foreach ($order as $key => $qid) { $question = $questions["$qid"]; - if ($question->type == "0" || $question->type == "1" || $question->type == "3") { + if ($question->type == "0" || $question->type == "1" || $question->type == "3" || $question->type == "-1") { $myxls->InsertText( $results["$user"]["$qid"]["answer1"] ); } if ($question->type == "2" || $question->type == "3") { @@ -172,7 +172,7 @@ echo "surveyid surveyname userid firstname lastname email idnumber time "; foreach ($order as $key => $qid) { $question = $questions["$qid"]; - if ($question->type == "0" || $question->type == "1" || $question->type == "3") { + if ($question->type == "0" || $question->type == "1" || $question->type == "3" || $question->type == "-1") { echo "$question->text "; } if ($question->type == "2" || $question->type == "3") { @@ -198,7 +198,7 @@ foreach ($order as $key => $qid) { $question = $questions["$qid"]; - if ($question->type == "0" || $question->type == "1" || $question->type == "3") { + if ($question->type == "0" || $question->type == "1" || $question->type == "3" || $question->type == "-1") { echo $results["$user"]["$qid"]["answer1"]." "; } if ($question->type == "2" || $question->type == "3") { -- 2.39.5