View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
10718Bug reportsConditionspublic2016-04-04 16:32
Reporterbytelaunch Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version2.06+ 
Summary10718: Using fieldname.shown in Group's relevance equation does not work if user hasn't answered question
Description

When a Group has a relevance equation of (fieldname1.shown == "Something" || fieldname2.shown == "Something"), it does not resolve as true unless both questions have been answered by the user.

Steps To Reproduce
  1. Import the sample survey provided
  2. Test the questionnaire
  3. Choose "Trump" or Clinton"
  4. Choose a reason Why
  5. Observe that "whyresult" is skipped even though condition should be valid
TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)150629
I will donate to the project if issue is resolvedYes
BrowserChrome
Database type & versionMySQL 5.5
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.3
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-03-09 08:54

administrator   ~36184

The equation does not become true because fieldname1.shown is undefined if it was not answered, and so the whole equation becomes invalid.
You should also not use the shown text for the comparison but the code value of the answer option.
To prevent the invalid equationby a non-answered question you should use
'fieldname1.NAOK', so rather

fieldname1.NAOK='T1'

So this is not a bug. Your donation (or rather buy a Premium Package instead) would be still appreciated, of course ;).

Issue History

Date Modified Username Field Change
2016-03-08 21:57 bytelaunch New Issue
2016-03-08 21:57 bytelaunch File Added: limesurvey_survey_128812.lss
2016-03-09 08:54 c_schmitz Note Added: 36184
2016-03-09 08:54 c_schmitz Assigned To => c_schmitz
2016-03-09 08:54 c_schmitz Status new => feedback
2016-04-04 16:32 c_schmitz Status feedback => closed
2016-04-04 16:32 c_schmitz Resolution open => no change required