View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16123Bug reportsImport/Exportpublic2020-04-14 12:53
Reporterc_schmitz Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version4.1.16 
Summary16123: TSV export does not properly export a single group/question/answer option etc.
Description

When exporting a singel group/question/answer option as tab-separated-value it will not be properly exported.
Instead usually 2-3 invalid rows will appear in the .tsv export

Steps To Reproduce

To reproduce take use a survey with a single question or answer option and check the output.

Additional Information

The reason is that the export file is created by using the XML representation of the survey,
However, instead of using it directly as SimpleXML it gets converted to a PHP array by using json_encode/json_decode.
This is causing XML nodes that only have one child in a collection to be not nested properly, anymore.
The correct solution would be to rewrite the TSV export to use the SimpleXML object directly (like survey .lss import does).

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)not relevant
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2020-04-10 13:04

administrator   ~57072

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29823

lime_release_bot

lime_release_bot

2020-04-14 12:53

administrator   ~57110

Fixed in Release 4.1.17+200414

Related Changesets

LimeSurvey: master 5a57e499

2020-04-10 13:04:06

c_schmitz

Details Diff
Fixed issue 16123: TSV export does not properly export a single group/question/answer option etc.
Dev Hack to fix at least the single group problem as this would be most common.
Affected Issues
16123
mod - application/helpers/export_helper.php Diff File

Issue History

Date Modified Username Field Change
2020-04-10 13:03 c_schmitz New Issue
2020-04-10 13:04 c_schmitz Changeset attached => LimeSurvey master 5a57e499
2020-04-10 13:04 c_schmitz Note Added: 57072
2020-04-10 13:04 c_schmitz Assigned To => c_schmitz
2020-04-10 13:04 c_schmitz Resolution open => fixed
2020-04-14 12:53 lime_release_bot Note Added: 57110
2020-04-14 12:53 lime_release_bot Status new => closed