View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04930Bug reportsImport/Exportpublic2011-02-07 12:52
ReporterMazi Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Target Version1.91RC4Fixed in Version1.91RC3 
Summary04930: Question attribute value for "use dropdown" is lost at import
Description

When import a survey containing a dual scale question which should use the dropdown layout, this information isn't imported correctly and so no dropdown layout is used.

Steps To Reproduce
  1. Have a look at the structure of the attached CSV file which lists this line for the question attributes:
    "32","62","use_dropdown","true"

  2. Import the attached survey.

  3. Check preview of: first question group ("Array Questions"), question "Array (Flexible Labels) dual scale (dropdown)". -> no dropdown layout

Additional Information
  • I could reproduce this at 1.90 build 9642 and 1.91 RC3.

  • The value at the CSV file is "true" instead of "1" like at other attributes -> maybe this once was an EXport problem?

TagsNo tags attached.
Attached Files
sample_survey.csv (14,136 bytes)
Bug heat6
Complete LimeSurvey version number (& build)9715
I will donate to the project if issue is resolvedNo
BrowserFirefox 3.6
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2011-02-05 13:30

developer   ~14055

Hello,

It's difficult to know what to do.

I can replace all true by 1 in import function, but maybe there are some attribute where true is OK.

I can test if use_dropdown is "true" and then replace with 1, but i don't like this option ( because after , we put if attribute is "thisattribute" and value="false" then ... and another line, and another line , and another line)

I think it's a bad idea to modifiy actual test ( if ($use_dropdown==1 || $use_dropdown=="true") ...)

I don't know what to do ...

Mazi

Mazi

2011-02-06 14:26

updater   ~14063

Thibault, what do you think?

lemeur

lemeur

2011-02-06 21:32

developer   ~14071

Can you try another export of a clean survey using use_dropdown in the latest 1.90+ version ?
How is it imported ? As true or 1 ?

Mazi

Mazi

2011-02-07 12:51

updater   ~14075

When exporting at 1.91RC3 the value is exported as "1" and import works fine, the question is displayed correclty.

So I think we can close this one, it probably was a export bug at an older version.

Mazi

Mazi

2011-02-07 12:52

updater   ~14076

Export problem at an old version, already fixed at 1.91RC3 (and probably even in 1.90).

Issue History

Date Modified Username Field Change
2011-02-04 16:17 Mazi New Issue
2011-02-04 16:17 Mazi Status new => assigned
2011-02-04 16:17 Mazi Assigned To => DenisChenu
2011-02-04 16:17 Mazi File Added: sample_survey.csv
2011-02-05 13:30 DenisChenu Note Added: 14055
2011-02-06 14:26 Mazi Assigned To DenisChenu => lemeur
2011-02-06 14:26 Mazi Note Added: 14063
2011-02-06 21:32 lemeur Note Added: 14071
2011-02-07 12:51 Mazi Note Added: 14075
2011-02-07 12:52 Mazi Note Added: 14076
2011-02-07 12:52 Mazi Status assigned => closed
2011-02-07 12:52 Mazi Resolution open => fixed
2011-02-07 12:52 Mazi Fixed in Version => 1.91RC3