Skip to content

Commit

Permalink
Dev: corrections in tsv survey export function
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Jul 25, 2018
1 parent b3e5890 commit ed9fc2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/export_helper.php
Expand Up @@ -2513,12 +2513,13 @@ function tsvSurveyExport($surveyid){
if ($index_languages == 0 && !empty($conditions[$qid])){
foreach ($conditions[$qid] as $key => $condition) {
$tsv_output = $fields;
$tsv_output['id'] = $condition['cid'];
$tsv_output['class'] = 'C';
$tsv_output['type/scale'] = $condition['scenario'];
$tsv_output['related_id'] = $condition['cqid'];
$tsv_output['name'] = $condition['cfieldname'];
$tsv_output['relevance'] = $condition['method'];
$tsv_output['text'] = $condition['value'];
$tsv_output['text'] = !empty($assessment['value']) && count($condition['value']) > 0?$condition['value']:'';
fputcsv($out, $tsv_output, chr(9));
}
}
Expand Down

0 comments on commit ed9fc2b

Please sign in to comment.