Skip to content

Commit

Permalink
Fixed issue #17114: Import from TSV : relevance set to "0" not import…
Browse files Browse the repository at this point in the history
…ed (#1771)
  • Loading branch information
gabrieljenik committed Feb 25, 2021
1 parent e6ba159 commit 1194bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/export_helper.php
Expand Up @@ -2631,7 +2631,7 @@ function tsvSurveyExport($surveyid){
$tsv_output['type/scale'] = $group['group_order'];
$tsv_output['name'] = !empty($group['group_name']) ? $group['group_name'] : '';
$tsv_output['text'] = !empty($group['description']) ? str_replace(array("\n", "\r"), '', $group['description']) : '';
$tsv_output['relevance'] = !empty($group['grelevance']) ? $group['grelevance'] : '';
$tsv_output['relevance'] = isset($group['grelevance']) ? $group['grelevance'] : '';
$tsv_output['random_group'] = !empty($group['randomization_group']) ? $group['randomization_group'] : '';
$tsv_output['language'] = $language;
fputcsv($out, array_map('MaskFormula',$tsv_output), chr(9));
Expand All @@ -2645,7 +2645,7 @@ function tsvSurveyExport($surveyid){
$tsv_output['class'] = 'Q';
$tsv_output['type/scale'] = $question['type'];
$tsv_output['name'] = !empty($question['title']) ? $question['title'] : '';
$tsv_output['relevance'] = !empty($question['relevance']) ? $question['relevance'] : '';
$tsv_output['relevance'] = isset($question['relevance']) ? $question['relevance'] : '';
$tsv_output['text'] = !empty($question['question']) ? str_replace(array("\n", "\r"), '', $question['question']) : '';
$tsv_output['help'] = !empty($question['help']) ? str_replace(array("\n", "\r"), '', $question['help']) : '';
$tsv_output['language'] = $question['language'];
Expand Down

0 comments on commit 1194bb5

Please sign in to comment.