View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09040Bug reportsConditionspublic2014-06-11 17:12
Reportergadeynebram Assigned Toc_schmitz  
PriorityurgentSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version2.05+ 
Summary09040: Relevance condition containing TOKEN:ATTRIBUTE_1 is not working
Description

I've recently upgraded to 2.05.

Some questions in my survey contain conditions like this one:
((TOKEN:ATTRIBUTE_1 == "USA")) or ((TOKEN:ATTRIBUTE_1 == "Hungary FS"))

They were generated using the conditions page.

The questions do not appear even when attribute_1 is USA of Hungary FS

Steps To Reproduce

Add new token with value USA or Hungary FS for attribute_1

TagsNo tags attached.
Attached Files
conditionerror.lss (274,811 bytes)
Bug heat6
Complete LimeSurvey version number (& build)140502
I will donate to the project if issue is resolvedYes
Browserfirefox
Database type & versionMySQL 5.5.36
Server OS (if known)Centos
Webserver software & version (if known)Apache 2.2.24
PHP Version5.3.25

Users monitoring this issue

gadeynebram

Activities

gadeynebram

gadeynebram

2014-05-17 14:11

reporter   ~29976

I've enabled the debug mode but this does not show any errors.

I've also added the {TOKEN:ATTRIBUTE_1} tag in a questions to see what the value is that lime survey uses. This is shown empty.

It is rather strange but at one time suddenly the value of the attribute appeared and from then on the condition was working fine. Subsequent new tokens worked also fine.

I then reloaded the LSS file to reproduce what had fixed this. However now it is not working any more again.

So I'm wondering why it worked. Could this be a SESSION issue?

What I did was the following:
-remove the conditions with token:attribute_1
-add them again
-add {TOKEN:ATTRIBUTE_1} in a question of the previous question group and one in a question of question group containing the conditions.
-opened the survey with the normal url
-opened the survey with an URL were I appended /token/nr

c_schmitz

c_schmitz

2014-05-20 14:12

administrator   ~30005

Always start the survey using the gear icon if you test it. Otherwise the session data is not properly reset.

I cannot reproduce the issue primarily because your example survey does not demonstrate it at all, from what I can see.

Please attach a two question example replicating the issue.

c_schmitz

c_schmitz

2014-06-11 17:12

administrator   ~30086

Closed due to missing feedback.

Issue History

Date Modified Username Field Change
2014-05-17 09:32 gadeynebram New Issue
2014-05-17 09:32 gadeynebram File Added: conditionerror.lss
2014-05-17 14:11 gadeynebram Note Added: 29976
2014-05-17 14:11 gadeynebram Issue Monitored: gadeynebram
2014-05-20 14:06 c_schmitz Assigned To => c_schmitz
2014-05-20 14:06 c_schmitz Status new => assigned
2014-05-20 14:12 c_schmitz Note Added: 30005
2014-05-20 14:12 c_schmitz Status assigned => feedback
2014-06-11 17:12 c_schmitz Note Added: 30086
2014-06-11 17:12 c_schmitz Status feedback => closed
2014-06-11 17:12 c_schmitz Resolution open => unable to reproduce