Skip to content
Browse files

Fixed download for virtual scale questions with type = -1 (eg ATTLS)

  • Loading branch information...
1 parent a2b4ecf commit ee990b193a61442aa3bc8f64e1480b752d44fffb martin committed Apr 15, 2002
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/survey/download.php
View
8 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") {

0 comments on commit ee990b1

Please sign in to comment.
Something went wrong with that request. Please try again.