View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
10886Bug reportsImport/Exportpublic2016-04-25 13:54
Reportereloner Assigned Toollehar  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary10886: Export to XML: question type List Radio not exported correctly
Description

If you have a question List Radio and export the answers in XML format you get the Label of the question, not the question code. The output is correct for other formats (I tested SPSS and PDF)

Steps To Reproduce

Create a new question. Choose List Radio. Add some options. Export the results in XML format

Additional Information

It is possible to bypass the problem by exporting the answers in SPSS format, but you need to have SPSS (a very expensive package) and a program (such as Stattrtansfer, very expensive too) to convert to/from STATA/SPSS.

I add a simple survey that can be used for testing purpose (just a survey with a List Radio question).

TagsNo tags attached.
Attached Files
StataOut.jpg (61,406 bytes)   
StataOut.jpg (61,406 bytes)   
StataOutHowItShouldBe.jpg (35,430 bytes)   
StataOutHowItShouldBe.jpg (35,430 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)Version 2.50+ Build 160405
I will donate to the project if issue is resolvedNo
BrowserMozilla Firefox
Database type & versionMySql
Server OS (if known)ubuntu4.14
Webserver software & version (if known)Apache 2.0
PHP VersionPHP Version 5.5.9

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-04-07 14:21

administrator   ~37068

elone, I assume you mean the queXML export?

eloner

eloner

2016-04-07 14:25

reporter   ~37069

I mean if you choose: Export results to application and then Stata (.XML) format

ollehar

ollehar

2016-04-20 13:16

administrator   ~37599

Could you please supply an XML with wrong data and a corrected XML as you would like to see it?

eloner

eloner

2016-04-21 09:34

reporter   ~37622

Hello Olle, I have loaded two screenshots: the first with the wrong file (you can see column Q1 with all values "yes" and "no") and the first containing the Q1 column as it should be (1s and 2s values). Spss correctly exports 1 and 2 values (to analize data is much better having the values insted of the labels!).

ollehar

ollehar

2016-04-21 12:58

administrator   ~37646

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

ollehar

ollehar

2016-04-21 12:59

administrator   ~37647

I don't have Stata installed, so I can't test my fix, only read the XML generated. If you can, please pull and confirm that it works as expected.

c_schmitz

c_schmitz

2016-04-25 13:54

administrator   ~37796

Version 2.50+ Build 160425 released

Related Changesets

LimeSurvey: master fcd576c0

2016-04-21 10:57:27

ollehar

Details Diff
Fixed issue 10886: Export to XML: question type List Radio not exported
correctly
Affected Issues
10886
mod - application/core/plugins/ExportSTATAxml/STATAxmlWriter.php Diff File

Issue History

Date Modified Username Field Change
2016-04-07 13:38 eloner New Issue
2016-04-07 13:38 eloner File Added: limesurvey_survey_658592.lss
2016-04-07 14:12 c_schmitz Assigned To => adamzammit
2016-04-07 14:12 c_schmitz Status new => assigned
2016-04-07 14:21 c_schmitz Note Added: 37068
2016-04-07 14:25 eloner Note Added: 37069
2016-04-07 14:36 c_schmitz Assigned To adamzammit =>
2016-04-07 14:36 c_schmitz Priority none => high
2016-04-07 14:36 c_schmitz Status assigned => new
2016-04-20 13:03 ollehar Assigned To => ollehar
2016-04-20 13:03 ollehar Status new => assigned
2016-04-20 13:03 ollehar Sticky Issue No => Yes
2016-04-20 13:16 ollehar Note Added: 37599
2016-04-21 09:30 eloner File Added: StataOut.jpg
2016-04-21 09:31 eloner File Added: StataOutHowItShouldBe.jpg
2016-04-21 09:34 eloner Note Added: 37622
2016-04-21 12:58 ollehar Changeset attached => LimeSurvey master fcd576c0
2016-04-21 12:58 ollehar Note Added: 37646
2016-04-21 12:58 ollehar Resolution open => fixed
2016-04-21 12:58 ollehar Status assigned => resolved
2016-04-21 12:58 ollehar Fixed in Version => 2.5
2016-04-21 12:59 ollehar Note Added: 37647
2016-04-21 13:13 c_schmitz Sticky Issue Yes => No
2016-04-25 13:54 c_schmitz Note Added: 37796
2016-04-25 13:54 c_schmitz Status resolved => closed