View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
04608Bug reportsImport/Exportpublic2010-10-19 21:12
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.90+ 
Target Version1.90+Fixed in Version1.90+ 
Summary04608: INSERTANS conversion fails at survey import
Description

INSERTANS placeholdrs are not convertated correctly when importing a survey. See attached screen shot, e.g. QID should be 5169 instead of 94.

Steps To Reproduce
  1. Import the attached survey.
  2. Q1 has a question with an "andere" item at the bottom. The following question should display the answer for this item in the question text.
  3. Problem: Wrong placeholder -> failure.
TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)9137
I will donate to the project if issue is resolved
Browser
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

Mazi

Mazi

2010-09-20 19:25

updater   ~12880

I'm not sure if this was a feature before 1.90, but when changing the group a question belongs to, the INSERTANS identifier isn't converted correctly. It refers to a wrong SGQA combination.

DenisChenu

DenisChenu

2010-09-21 14:34

developer   ~12884

Actually copy survey with insertrans had the same problem.

Quick solution : remove the checkbox, and after found and correct the problem...

lemeur

lemeur

2010-10-02 08:41

developer   ~12972

Confirmed: transInsertAns was broken when the new LSS file format and the XMLImportSurvey function was created.

I'm not sure I'll be able to fix this alone... will see

lemeur

lemeur

2010-10-02 09:04

developer   ~12973

Nope, I can't fix this alone.
When we switched to the XML .lss file format, we changed the import function and now it is no more recording the Old/New fieldnames mapping table so that the transInsertAns can't work anymore.

the easiest way to fix this would be to:

  • add in the lss file a mapping between QID => fieldnames
  • then use this mapping in order to translate Insertans (the same way it is done for conditions)
  • remove the old transInsertans function
c_schmitz

c_schmitz

2010-10-07 21:45

administrator   ~13033

well, even if the lss file would provide a list of QID fieldnames then the relationship between the old fieldnames and new fieldnames are still not completely clear. Especially if there might be changes in createfieldmap in the future.

I am thinking of importing the survey as is it now, then creating the old fieldmap by using the new fieldmap and reverse replaceing IDs using the created oldid/newid arrays and so creating the old fieldnames.
Then walk the contents again and replace everything INSERTANS.

c_schmitz

c_schmitz

2010-10-18 15:25

administrator   ~13231

Fixed in rev 9264

c_schmitz

c_schmitz

2010-10-19 21:12

administrator   ~13264

Released in 1.90 plus release.

Issue History

Date Modified Username Field Change
2010-09-20 09:44 Mazi New Issue
2010-09-20 09:44 Mazi Status new => assigned
2010-09-20 09:44 Mazi Assigned To => lemeur
2010-09-20 09:44 Mazi File Added: insertans_survey_25795.lss
2010-09-20 09:44 Mazi File Added: insertans.JPG
2010-09-20 09:49 Mazi Relationship added child of 04609
2010-09-20 19:25 Mazi Note Added: 12880
2010-09-21 14:34 DenisChenu Note Added: 12884
2010-10-02 08:41 lemeur Note Added: 12972
2010-10-02 08:41 lemeur Status assigned => confirmed
2010-10-02 09:01 lemeur Assigned To lemeur => c_schmitz
2010-10-02 09:01 lemeur Status confirmed => assigned
2010-10-02 09:04 lemeur Note Added: 12973
2010-10-07 21:45 c_schmitz Note Added: 13033
2010-10-09 08:53 lemeur Relationship deleted child of 04609
2010-10-09 08:53 lemeur Relationship added has duplicate 04609
2010-10-09 09:22 lemeur Relationship deleted has duplicate 04609
2010-10-18 10:12 c_schmitz File Deleted: insertans.JPG
2010-10-18 15:25 c_schmitz Note Added: 13231
2010-10-18 15:25 c_schmitz Status assigned => resolved
2010-10-18 15:25 c_schmitz Fixed in Version => 1.90+
2010-10-18 15:25 c_schmitz Resolution open => fixed
2010-10-19 21:12 c_schmitz Note Added: 13264
2010-10-19 21:12 c_schmitz Status resolved => closed