View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04628Bug reportsConditionspublic2010-10-13 16:22
ReporterMazi Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Target Version1.90+Fixed in Version1.90+ 
Summary04628: Conditions based on additional attributes don't work
Description

When setting a condition on an additional attribute this condition only partially works, depending on survey mode (see "steps to reproduce").

Steps To Reproduce
  1. Import the attached survey.

  2. Go to the token management and create a token table

  3. Go to the additional attribute fields screen

  4. Add 3 new attribute fields

  5. Add a single token entry with token "1" and value "0" at the additional "Gruppe" column.

  6. Go back to the survey admin screen

  7. Go to Group 3 ("Frage 3 - Entwicklungspotenzial")

  8. Go to the single text question of this group ("Question Diese Eigenschaften und Verhaltensweisen...").

  9. Go to the condition editor and set the following condition for this question:
    Only show question 3 "Diese Eigenschaften ..." IF:
    Gruppe [From token table] equals 0 (Constant)

  10. Activate and start the survey using token="1" (the previously created token).

a) At "all in one" the group heading is shown (the conditional question is the only question in this group). The question itself is hidden -> the condition does NOT works correct!
(click "exit and clear" button)

b) Switch to "group by group": The third question is completely shown including the group heading, the condition works fine.
(click "exit and clear" button)

c) Switch to "question by question": The group heading of the third question is shown, on the next screen the question is also shown, the condition works fine here, too.

TagsNo tags attached.
Attached Files
group-cond.JPG (14,388 bytes)   
group-cond.JPG (14,388 bytes)   
token_group_setting.JPG (24,485 bytes)   
token_group_setting.JPG (24,485 bytes)   
gbg_group3.JPG (31,316 bytes)   
gbg_group3.JPG (31,316 bytes)   
allinone_group3.JPG (39,255 bytes)   
allinone_group3.JPG (39,255 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)9137
I will donate to the project if issue is resolved
Browser
Database type & versionmysql 5.0.77
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2010-10-05 20:49

developer   ~12999

Weird, I'm currently running a survey with conditions on tokens in Group-by-group surveys and this works fine!

Mazi

Mazi

2010-10-05 21:42

updater   ~13005

I have added some screen shots:

  • The first one shows the condition which is set ("0" is a constant value)
  • The second one shows the token scrren with a Gruppe = "0" entry
  • The third shows the survey in group by group mode -> group 3 is completely shown
  • The fourth one shows the survey in all in one mode, only the group heading is shown.
Mazi

Mazi

2010-10-05 23:05

updater   ~13006

Updated a), b) and c) to describe the problem correctly.

lemeur

lemeur

2010-10-05 23:38

developer   ~13012

was due to debug mode enabled and a small php error message displayed inside the javascript used to evaluate conditions.
Now fixed in rev9171

c_schmitz

c_schmitz

2010-10-13 16:22

administrator   ~13141

Released in latest Plus version

Issue History

Date Modified Username Field Change
2010-09-27 19:12 Mazi New Issue
2010-09-27 19:12 Mazi Status new => assigned
2010-09-27 19:12 Mazi Assigned To => lemeur
2010-09-27 19:12 Mazi File Added: limesurvey_survey_54152_Cond_Tokens.lss
2010-10-05 20:49 lemeur Note Added: 12999
2010-10-05 21:37 Mazi File Added: group-cond.JPG
2010-10-05 21:38 Mazi File Added: token_group_setting.JPG
2010-10-05 21:40 Mazi File Added: gbg_group3.JPG
2010-10-05 21:40 Mazi File Added: allinone_group3.JPG
2010-10-05 21:42 Mazi Note Added: 13005
2010-10-05 23:05 Mazi Note Added: 13006
2010-10-05 23:05 Mazi Steps to Reproduce Updated
2010-10-05 23:38 lemeur Note Added: 13012
2010-10-05 23:38 lemeur Status assigned => resolved
2010-10-05 23:38 lemeur Fixed in Version => 1.90+
2010-10-05 23:38 lemeur Resolution open => fixed
2010-10-13 16:22 c_schmitz Note Added: 13141
2010-10-13 16:22 c_schmitz Status resolved => closed