Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #15933: Missing groups, question and answer options in ta…
…b-separated-values format (*.txt) export
  • Loading branch information
c-schmitz committed Apr 8, 2020
1 parent 6998921 commit 0cf252c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions application/helpers/export_helper.php
Expand Up @@ -2573,12 +2573,6 @@ function tsvSurveyExport($surveyid){
} else {
$groups_data = array();
}
$groups = array();
foreach ($groups_data as $key => $group) {
if ($group['language'] === $language){
$groups[$language][$group['gid']] = $group;
}
}

// questions data
if (array_key_exists('questions', $xmlData)){
Expand All @@ -2597,12 +2591,6 @@ function tsvSurveyExport($surveyid){
} else {
$questions_data = array();
}
$questions = array();
foreach ($questions_data as $key => $question) {
if ($question['language'] === $language){
$questions[$language][$question['gid']][$question['qid']] = $question;
}
}

// subquestions data
if (array_key_exists('subquestions', $xmlData)){
Expand All @@ -2621,12 +2609,6 @@ function tsvSurveyExport($surveyid){
} else {
$subquestions_data = array();
}
$subquestions = array();
foreach ($subquestions_data as $key => $subquestion) {
if ($subquestion['language'] === $language){
$subquestions[$language][$subquestion['parent_qid']][] = $subquestion;
}
}

// answers data
if (array_key_exists('answers', $xmlData)){
Expand All @@ -2644,12 +2626,6 @@ function tsvSurveyExport($surveyid){
} else {
$answers_data = array();
}
$answers = array();
foreach ($answers_data as $key => $answer) {
if ($answer['language'] === $language){
$answers[$language][$answer['qid']][] = $answer;
}
}

// assessments data
if (array_key_exists('assessments', $xmlData)){
Expand Down

0 comments on commit 0cf252c

Please sign in to comment.