View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04467Bug reportsConditionspublic2010-07-07 18:34
Reporterchuelibrueder Assigned Tolemeur  
PriorityhighSeveritypartial_block 
Status closedResolutionduplicate 
Product Version1.87 
Summary04467: token conditions do not consider szenarios, are not used correctly
Description

I have a group which should only be shown if a certain token x is greater than 1,

within this group I have a question 3 (402) which should only be shown if question 1 (415) has no aswer or question 2 (416) has no answer.

I set the following conditions

szenario 1
token x is greater than 1
question 1 is equal to No answer()

OR

szenrio 2
token x is greater than 1
question 2 is equal to No answer()

This results in the following sourcecode:

...
if (((true)) || ((true)) ||
((document.getElementById('java83456X69X415') != null && (document.getElementById('java83456X69X415').value == ' ' || !document.getElementById('java83456X69X415').value))) ||

((document.getElementById('java83456X69X416') != null && (document.getElementById('java83456X69X416').value == ' ' || !document.getElementById('java83456X69X416').value))))
{
document.getElementById('question402').style.display='';
document.getElementById('display402').value='on';
}
...

This results in a statement which is always true, if token x is greater than 1 is true. Token conditions don't seem to consider szenarios

Additional Information

the result in my view should be something like :

...
if ( || ((true)) ||
(((true)) && (document.getElementById('java83456X69X415') != null && (document.getElementById('java83456X69X415').value == ' ' || !document.getElementById('java83456X69X415').value))) ||

(((true)) && (document.getElementById('java83456X69X416') != null && (document.getElementById('java83456X69X416').value == ' ' || !document.getElementById('java83456X69X416').value))))
{
document.getElementById('question402').style.display='';
document.getElementById('display402').value='on';
}
...

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)8518
I will donate to the project if issue is resolved
BrowserMozilla Firefox 3.6.6
Database type & versionMySQL-Client-Version: 5.1.41
Server OS (if known)xammplite (apache )
Webserver software & version (if known)under windows
PHP Version5.3.1
Git branch / Pull Request URL

Users monitoring this issue

chuelibrueder

Activities

chuelibrueder

chuelibrueder

2010-07-06 16:20

reporter   ~12369

Probably the same as issue 04277, sorry about that, just found it in the release notes. The search in the bugtracker doesn't seem to work for me.

lemeur

lemeur

2010-07-07 18:34

reporter   ~12372

Yes it must be the same issue.
Please try with an updated LS version, an reopen fi yous till have this issue.

Regards,
Thibault

Issue History

Date Modified Username Field Change
2010-07-06 16:12 chuelibrueder New Issue
2010-07-06 16:12 chuelibrueder Status new => assigned
2010-07-06 16:12 chuelibrueder Assigned To => user372
2010-07-06 16:19 chuelibrueder Issue Monitored: chuelibrueder
2010-07-06 16:20 chuelibrueder Note Added: 12369
2010-07-07 09:44 c_schmitz Assigned To user372 => lemeur
2010-07-07 18:34 lemeur Note Added: 12372
2010-07-07 18:34 lemeur Status assigned => closed
2010-07-07 18:34 lemeur Resolution open => duplicate