View Issue Details

IDProjectCategoryView StatusLast Update
12266Feature requests[All Projects] Conditionspublic2017-04-11 15:34
Reporterbrammeleman 
Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary12266: Condition incorrectly parsed when using more than two possible values for a token attribute
DescriptionIt's not possible to have a condition that consists of more than two values of a token.

For example. A condition that is displayed like this in the condition designer:

First name [Inexistant token table] equals john
or
First name [Inexistant token table] equals alice
or
First name [Inexistant token table] equals bob

Will be written as:

((TOKEN:FIRSTNAME == "alice" or TOKEN:FIRSTNAME == "bob") and (TOKEN:FIRSTNAME == "john"))

Obviously, this will never evaluate to True.
Additional InformationThis bug is introduced in Version 2.50+ Build 160725, see also https://bugs.limesurvey.org/view.php?id=11412.
The uploaded lss file includes the string ((TOKEN:FIRSTNAME == "alice" or TOKEN:FIRSTNAME == "bob") and (TOKEN:FIRSTNAME == "john")), but will show the correct condition in the condition designer.
TagsNo tags attached.

Relationships

Activities

brammeleman

2017-04-11 15:34

reporter  

limesurvey_token-condition.lss (13,697 bytes)

Issue History

Date Modified Username Field Change
2017-04-11 15:34 brammeleman New Issue
2017-04-11 15:34 brammeleman File Added: limesurvey_token-condition.lss