View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04376Bug reportsConditionspublic2010-06-08 21:51
ReporterTino Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.90RC1 
Summary04376: "no answer" condition remove recorded value
Description

I have questions (on different groups) (we'll call QX) depending on a "no answer" conditions from a numerical input (we'll call the question QC).
After changing pages during the survey, the recorded answer from QX are removed from the database...

Steps To Reproduce

Initial configuration :

  • Survey is activted and I use token.
  • Survey structure
    Group1 :
    • Q1A (type numerical input)
    • Q1B (condition : Q1A == "no answer")
      Group2
    • Q2A (condition : Q1A == "no answer")
      Group3
    • Q3A

I add a token and begin to fill the survey :

  • I leave Q1A empty

  • I answer Q1B

  • I click on "Next" button
    --> at this step, my answer are recorded into the database (Q1A stay at {null}, Q1B answer is filled )

  • I answer Q2A

  • I click on "Next" button

    Here is the problem --> Answer from Q2A is not recorded and answer from Q1B disappear from the database...

Additional Information

Find attached an export from the survey structure.

I also tested this problem with the Version 1.85+ (7523).

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)8518
I will donate to the project if issue is resolved
BrowserFirefox 3.6
Database type & versionMysql 5.0
Server OS (if known)Linux Ubuntu
Webserver software & version (if known)Apache 2.2.8
PHP Versionphp5

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2010-05-29 15:44

updater   ~12022

Texens, can you check if you can reproduce the problem?

texens

texens

2010-06-02 18:10

reporter   ~12101

Confirmed, I was able to reproduce the problem with 1.90b3 build 8780.

lemeur

lemeur

2010-06-04 15:48

developer   ~12168

Pb identified.

For Numerical, MultipleNumeric and Date questions a the typical no answer code (either '' or ' ') can't be set (it's not a Double, or Date field). So we let the value to NULL in DB.

However the $_SESSION[thefieldname] si set to ' ' which causes the checkconfield() to be working well => other answers having the Equals-No-Answer conditions on Q1A are recorded to DB

When loadanswers() is then called, since the DB field is NULL, the corresponding $_SESSION[] are reseted to NULL. Since NULL isn't the same as '' or ' ', the checkconfield decides that the questions having the Equals-No-Answer conditions on Q1A should be hidden, and thus reset any answers in DB !!!!!

Solution:
*either fix loadanswers() or fix save.php so that specific code is used when evaluating No-Answer for Numeric/Date questions.

lemeur

lemeur

2010-06-04 22:03

developer   ~12176

Fixed in rev 8799.
Many thanks for the report.

Issue History

Date Modified Username Field Change
2010-05-28 11:37 Tino New Issue
2010-05-28 11:37 Tino Status new => assigned
2010-05-28 11:37 Tino Assigned To => user372
2010-05-28 11:37 Tino File Added: limesurvey_survey_condition.csv
2010-05-28 15:03 Tino Issue Monitored: Tino
2010-05-28 15:03 Tino Issue End Monitor: Tino
2010-05-29 15:44 Mazi Note Added: 12022
2010-05-29 15:44 Mazi Assigned To user372 => texens
2010-06-02 18:10 texens Note Added: 12101
2010-06-02 18:10 texens Status assigned => confirmed
2010-06-03 21:25 lemeur Assigned To texens => lemeur
2010-06-03 21:25 lemeur Status confirmed => assigned
2010-06-04 15:48 lemeur Note Added: 12168
2010-06-04 15:48 lemeur Status assigned => confirmed
2010-06-04 22:03 lemeur Note Added: 12176
2010-06-04 22:03 lemeur Status confirmed => resolved
2010-06-04 22:03 lemeur Fixed in Version => 1.90RC1
2010-06-04 22:03 lemeur Resolution open => fixed
2010-06-08 21:51 c_schmitz Status resolved => closed