View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
04609Bug reportsConditionspublic2010-10-13 16:22
ReporterMazi Assigned Tolemeur  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.90+ 
Target Version1.90+Fixed in Version1.90+ 
Summary04609: Conditions don't work after having imported a survey
Description

After having imported a survey conditions don't work correctly.

Steps To Reproduce
  1. Import the attached survey.
  2. Q1 has a question with an "andere" item at the bottom. The following question should be displayed if Q1 was answered 0,2,3,...6 or even not answered.
  3. The following question is NOT displayed no matter what answer is chosen.
Additional Information

This problem is connected to bug "04608: INSERTANS conversion fails at survey import".

TagsNo tags attached.
Attached Files
cond_new.JPG (20,670 bytes)   
cond_new.JPG (20,670 bytes)   
cond_DB.JPG (58,362 bytes)   
cond_DB.JPG (58,362 bytes)   
Bug heat10
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

ba_training

Activities

ba_training

ba_training

2010-10-07 18:19

reporter   ~13028

Has there been any status update for this issue? It's still effecting me...
Thanks!

Mazi

Mazi

2010-10-08 16:29

updater   ~13045

I think it's work in progress, some details are discussed here: http://bugs.limesurvey.org/view.php?id=4608

lemeur

lemeur

2010-10-09 09:23

developer   ~13054

This is not a duplicate of 4608, but anothe bug.
I'm looking at this

lemeur

lemeur

2010-10-09 09:34

developer   ~13055

This bug is not an importsurvey bug, but an exportsurvey bug.
The cfieldname in the exported survey is

  • <cfieldname><![CDATA[25795X465X5168nder]]></cfieldname>
    Instead of
  • <cfieldname><![CDATA[25795X465X5168ander]]></cfieldname>

Mazi, can you test again from a new survey with teh very latest SVN code, as Cartsen has fixed issue in the file I think.
If you can copy this bug on latest codebase, please let me know.

Thibault

PS: a test survey in english is easier for me to test ;-)

Mazi

Mazi

2010-10-10 14:00

updater   ~13058

I updated to the latest SVN version, imported the survey again and the conditions were copied. BUT: They do not work. Take a look at the attached condition screen screen shot and the DB table screen shot:
The field code for the "andere" field is "ander" while the first character "a" seems to be missing at the DB. it should read
72986X746X13029ander instead of
72986X746X13029nder

I think that's the reason why the condition doesn't work. No matter what you answer at the "andere" field, the following question is never shown.

Hope this helps...

lemeur

lemeur

2010-10-10 17:58

developer   ~13059

Hi Mazi,

The pb is in the ".lss" file so importing again this buggy file will result in a buggy survey in any case (even if LS was fixed in the meantime).

What I'd like you to do is to build another fresh new survey with teh same kind of questions and conditions. Then export it and import-it again.
Since this is a brand new survey, can you do this one in English ?

TIA,
Thibault

Mazi

Mazi

2010-10-10 18:35

updater   ~13060

I created a new test survey, exported it and imported it again. At the imported version the reference to the previous answer doesn't work correctly, I get:
Why did you rate "Other" = Error(21839X747X13122other) -> all IDs are wrong.

The condition seems to be copied correctly though, if I answer "no answer" at Q1, item "other", the second question is skipped as expected.

lemeur

lemeur

2010-10-10 19:05

developer   ~13061

Mazi, if I understand your last post correctly, this means that the export bug is already fied in latest SVN, but the INSERTANS bug remains.
Am I right ?

If yes, the this means this ticket can be closed and work must be done on bug 4608 instead.

Mazi

Mazi

2010-10-10 22:01

updater   ~13062

Thibault, thanks for summarizing my findings ;-)

lemeur

lemeur

2010-10-11 10:28

developer   ~13063

Not only have I summarized your meaning, but at the same time I've been able to reproduce the bug.

In fact it does occur at import time and may have been here since the new LSS format was introduced.

lemeur

lemeur

2010-10-11 10:31

developer   ~13064

Fixed in rev 9203.
Thx Mazi for the report and the tests.
Thibault

c_schmitz

c_schmitz

2010-10-13 16:22

administrator   ~13122

Released in latest Plus version

Issue History

Date Modified Username Field Change
2010-09-20 09:49 Mazi New Issue
2010-09-20 09:49 Mazi Status new => assigned
2010-09-20 09:49 Mazi Assigned To => lemeur
2010-09-20 09:49 Mazi File Added: insertans_survey_25795.lss
2010-09-20 09:49 Mazi Relationship added parent of 04608
2010-10-01 19:30 ba_training Issue Monitored: ba_training
2010-10-07 18:19 ba_training Note Added: 13028
2010-10-08 16:29 Mazi Note Added: 13045
2010-10-09 08:53 lemeur Relationship deleted parent of 04608
2010-10-09 08:53 lemeur Relationship added duplicate of 04608
2010-10-09 09:22 lemeur Relationship deleted 04608
2010-10-09 09:23 lemeur Note Added: 13054
2010-10-09 09:23 lemeur Status assigned => confirmed
2010-10-09 09:34 lemeur Note Added: 13055
2010-10-09 09:34 lemeur Status confirmed => feedback
2010-10-10 14:00 Mazi Note Added: 13058
2010-10-10 14:00 Mazi Status feedback => assigned
2010-10-10 14:01 Mazi File Added: cond_new.JPG
2010-10-10 14:01 Mazi File Added: cond_DB.JPG
2010-10-10 17:58 lemeur Note Added: 13059
2010-10-10 17:58 lemeur Status assigned => feedback
2010-10-10 18:30 Mazi File Added: limesurvey_survey_21839-ORIG.lss
2010-10-10 18:33 Mazi File Added: limesurvey_survey_21839-COPY.lss
2010-10-10 18:35 Mazi Note Added: 13060
2010-10-10 18:35 Mazi Status feedback => assigned
2010-10-10 19:05 lemeur Note Added: 13061
2010-10-10 19:05 lemeur Status assigned => feedback
2010-10-10 22:01 Mazi Note Added: 13062
2010-10-10 22:01 Mazi Status feedback => assigned
2010-10-11 10:28 lemeur Note Added: 13063
2010-10-11 10:28 lemeur Status assigned => confirmed
2010-10-11 10:31 lemeur Note Added: 13064
2010-10-11 10:31 lemeur Status confirmed => resolved
2010-10-11 10:31 lemeur Fixed in Version => 1.90+
2010-10-11 10:31 lemeur Resolution open => fixed
2010-10-13 16:22 c_schmitz Note Added: 13122
2010-10-13 16:22 c_schmitz Status resolved => closed
2021-08-06 07:15 guest Bug heat 8 => 10