View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04867Bug reportsOtherpublic2011-01-26 22:11
Reporteruser11499Assigned Toc_schmitz  
PrioritynormalSeveritytweak 
Status closedResolutionunable to reproduce 
Product Version1.90 
Summary04867: Replacement Fields return incorrect answers
Description

When having a multiple choice question say question 345 in group 45 and surver 11111 with following answers

1 – Text_A
2 – Text_B
3 - Text_C
4 - Text_D
5 - Text_E

Then the corresponding SQKA identifiers would be

{INSERTANS: 11111X45X3451}
{INSERTANS: 11111X45X3452}
{INSERTANS: 11111X45X3453}
{INSERTANS: 11111X45X3454}
{INSERTANS: 11111X45X3455}

When calling them in a question on the next page provided I selected ‘Text_D’ it would return say

{INSERTANS: 11111X45X3451} = > ‘Text_C’ ( or some other random options )
{INSERTANS: 11111X45X3452} = > ‘No Answer’
{INSERTANS: 11111X45X3453} = > ‘No Answer’
{INSERTANS: 11111X45X3454} = > ‘Text_D’
{INSERTANS: 11111X45X3455} = > ‘No Answer’

Random answers seem to popup on different SQKA identifiers. Depending on the number of answers.

Steps To Reproduce

It wasn't happening until I increased the number of groups to 37.
number of questions = 64

number of answers in the question from which I want to retrieve the values = 19

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9487
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-01-13 23:54

administrator   ~13908

Last edited: 2011-01-13 23:54

Can you attach a sample survey please where this problem occurs? Also which build number of LimeSUrvey 1.90 are you using?

user11499

2011-01-14 10:44

  ~13909

Last edited: 2011-01-14 10:48

I have managed to pinpoint the line responsible for this behaviour.

In common.php

LINE 6125

while($row=$result->FetchRow())
{
if (isset($_SESSION[$code.$row['title']]) && $_SESSION[$code.$row['title']] == "Y")
{
$returns[] = $row['question'];
}
elseif (isset($_SESSION[$code]) && $_SESSION[$code] == "Y" && $questiondetails['aid']==$row['title'])
{
return $row['question'];
}
}

The correct answers are returned by the 'elseif' statement. The 'if' statement returns the random ones.

Limesurvey build number is 9487.

If I wont figure it out I will try to post the survey.

Thanks

user11499

2011-01-14 11:21

  ~13910

New lead:

The answers are not random. The line seems to return wrong codes in the following way.

Whenever we have answers with codes say 1 to 66.

{INSERTANS: 11111X45X3451}
...
...
...
{INSERTANS: 11111X45X34566}

and we answered ( ticked ) value for : {INSERTANS: 11111X45X34534}

It will say
{INSERTANS: 11111X45X34534} != 'No Answer' and {INSERTANS: 11111X45X3453} != 'No Answer'

As if code 34 and 3 were both selected.

So for some reason it takes the 1st digit from the code.

c_schmitz

c_schmitz

2011-01-14 21:02

administrator   ~13919

Try the following: Update to the latest 1.90 version first. (yours is not the latest yet). If you survey is active, deactivate it, then activate it. Tell me if it complains during activation.

c_schmitz

c_schmitz

2011-01-26 22:11

administrator   ~13978

Closed due to missing feedback.

Issue History

Date Modified Username Field Change
2011-01-13 16:03 user11499 New Issue
2011-01-13 23:53 c_schmitz Project @2@ => Bug reports
2011-01-13 23:54 c_schmitz Note Added: 13908
2011-01-13 23:54 c_schmitz Assigned To => c_schmitz
2011-01-13 23:54 c_schmitz Status new => feedback
2011-01-13 23:54 c_schmitz Note Edited: 13908
2011-01-14 10:44 user11499 Note Added: 13909
2011-01-14 10:44 user11499 Status feedback => assigned
2011-01-14 10:48 user11499 Note Edited: 13909
2011-01-14 11:21 user11499 Note Added: 13910
2011-01-14 21:02 c_schmitz Note Added: 13919
2011-01-14 21:02 c_schmitz Status assigned => feedback
2011-01-26 22:11 c_schmitz Note Added: 13978
2011-01-26 22:11 c_schmitz Status feedback => closed
2011-01-26 22:11 c_schmitz Resolution open => unable to reproduce
2021-03-08 20:08 c_schmitz Category Survey at runtime => (No Category)