View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08030Feature requestsExpression Managerpublic2016-12-09 08:32
Reportergabel Assigned ToDenisChenu  
PrioritynormalSeverityfeature 
Status acknowledgedResolutionopen 
Summary08030: Prefilled values for obviously not relevant questions lost
Description

Prefilled values can only be given by parameter to relevant questions. This should be possible to question that are not relevant at the time of survey start, but can become relevant by user interaction.

Steps To Reproduce

If the following survey is called by parameters like the following URL. The first Question sqK_q1 gets filled, but the value "A3" is lost, because it is irrelevant.

http://localhost/limesurvey2/index.php/survey/index/sid/525622/newtest/Y/lang/en/?525622X119X3620=A3&525622X119X3602q1=3

If it gets relevant by the equation "sqK_q1==2" and the parameter "525622X119X3602q1=3" is changed to "525622X119X3602q1=2", then the dropdown question is prefilled.

This becomes a problem if there should be prefilled questions, which waits for previous manual answers to get relevant.

Additional Information

The problem lies in the application\helpers\em_manager_helper.php where the SESSION prefilled values are setted to NULL.

Line 5768: $_SESSION[$LEM->sessid][$sgqa] = NULL;
and
Line 5798: $_SESSION[$LEM->sessid][$sq] = NULL;

TagsNo tags attached.
Attached Files
Bug heat6
Story point estimate
Users affected %

Users monitoring this issue

DenisChenu

Activities

c_schmitz

c_schmitz

2013-09-26 08:19

administrator   ~26373

A workaround would be to change the deletenonvalues parameter in config.php (see config-defaults.php for details)

DenisChenu

DenisChenu

2013-10-13 21:59

developer   ~26773

Maybe a survey plugin here: deletenonvalues by survey (all config can be in plugin for each survey)

DenisChenu

DenisChenu

2015-07-04 15:57

developer   ~32616

Last edited: 2015-07-04 15:59

Can you control with the last version if it's fixed ?
It's fixed for default value, unsure for prefilled.

DenisChenu

DenisChenu

2015-07-13 18:28

developer   ~32684

Pull request : https://github.com/LimeSurvey/LimeSurvey/pull/341

DenisChenu

DenisChenu

2015-11-02 17:23

developer   ~33486

Just use the same system than default :
https://github.com/LimeSurvey/LimeSurvey/pull/341

No change for 2.5 ( I think)
But see Sam remark for 3.0 (but a lot must be redone for 3.0)

Issue History

Date Modified Username Field Change
2013-07-22 15:17 gabel New Issue
2013-07-22 15:17 gabel File Added: limesurvey_survey_525622.lss
2013-09-26 08:19 c_schmitz Note Added: 26373
2013-09-26 08:19 c_schmitz Target Version => 2.05 RC
2013-10-03 14:41 DenisChenu Issue Monitored: DenisChenu
2013-10-13 21:59 DenisChenu Note Added: 26773
2013-10-14 10:31 c_schmitz Project Bug reports => Feature requests
2015-07-04 15:57 DenisChenu Assigned To => DenisChenu
2015-07-04 15:57 DenisChenu Status new => assigned
2015-07-04 15:57 DenisChenu Note Added: 32616
2015-07-04 15:59 DenisChenu Note Edited: 32616
2015-07-13 18:09 DenisChenu Status assigned => confirmed
2015-07-13 18:28 DenisChenu Note Added: 32684
2015-11-02 17:23 DenisChenu Note Added: 33486
2015-11-02 17:23 DenisChenu Assigned To DenisChenu => c_schmitz
2015-11-02 17:23 DenisChenu Status confirmed => acknowledged
2016-12-09 08:32 DenisChenu Assigned To c_schmitz => DenisChenu