View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
03807Bug reportsSurvey takingpublic2009-11-13 16:40
Reporteruser1237Assigned Tolemeur  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.86 
Fixed in Version1.87RC1 
Summary03807: Evaluation for group display not the same as for question display with no answer
Description

If you have in a group by group survey a conditional question that is shown only if the user not selecting a specific answer, the question is not displayed if the user did not answer the question (no answer).

Additional Information

Steps to reproduce:

  • Attached you find a simple survey with two questions
    Question Q2 is only shown when the user is not answer Q1 with A2
  • Test the survey and do not select anything on the first page.
  • Click Next
  • Now the group page is displayed, but Q2 not, leading to an empty group page.
TagsNo tags attached.
Attached Files
conditions_same.patch (422 bytes)   
--- limesurvey/common.php	2009-10-01 02:17:38.000000000 +0200
+++ survey/common.php	2009-11-01 12:58:52.000000000 +0100
@@ -6018,7 +6018,7 @@
 				$cvalue=$row['value'];
 				if ($conditionSourceType == 'question')
 				{
-					if (isset($_SESSION[$row['cfieldname']]))
+					if (isset($_SESSION[$row['cfieldname']]) && $_SESSION[$row['cfieldname']]!="")
 					{
 						$cfieldname=$_SESSION[$row['cfieldname']];
 					} 
conditions_same.patch (422 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)7697
I will donate to the project if issue is resolved
Browser
Database type & version5.0.51a-24+lenny2 (Debian)
Server OS (if known)Debian 5.0.3
Webserver software & version (if known)Apache/2.2.9 (Debian)
PHP VersionPHP/5.2.6-1+lenny3 with Suhosin-Patch

Users monitoring this issue

There are no users monitoring this issue.

Activities

user1237

2009-11-01 13:04

  ~09935

Perhaps the patch solves this issue.
Now the group is not shown. (Same behavior as when the Quesion Q2 is on the same page and shown or hidden via javascript).
But I'm not sure it breaks other things.

user372

2009-11-02 08:21

  ~09945

@ Lemeur: please review the attached patch - Thx!

lemeur

lemeur

2009-11-07 14:10

developer   ~09990

This is fixed in rev 7846.
I agree with the fact there was an inconsistency, but not in the analysis.

In All-in-one mode and Question per page mode, the question is displayed (as well as the group description).

In group per page, the group title was displayed but not the question so the issue was with teh javascript evaluation in group per page mode and not with the group display or not.

So with latest fix, the Quesiton is displayed together with teh group title.

Thanks for this report,
Thibault

Issue History

Date Modified Username Field Change
2009-11-01 12:11 user1237 New Issue
2009-11-01 12:11 user1237 Status new => assigned
2009-11-01 12:11 user1237 Assigned To => user372
2009-11-01 12:11 user1237 File Added: limesurvey_survey_86233.csv
2009-11-01 12:11 user1237 LimeSurvey build number => 7697
2009-11-01 12:11 user1237 Database & DB-Version => 5.0.51a-24+lenny2 (Debian)
2009-11-01 12:11 user1237 Operating System (Server) => Debian 5.0.3
2009-11-01 12:11 user1237 Webserver => Apache/2.2.9 (Debian)
2009-11-01 12:11 user1237 PHP Version => PHP/5.2.6-1+lenny3 with Suhosin-Patch
2009-11-01 13:03 user1237 File Added: conditions_same.patch
2009-11-01 13:04 user1237 Note Added: 09935
2009-11-01 13:05 user1237 Issue Monitored: user1237
2009-11-02 08:21 user372 Note Added: 09945
2009-11-02 08:21 user372 Assigned To user372 => lemeur
2009-11-07 14:10 lemeur Note Added: 09990
2009-11-07 14:10 lemeur Status assigned => resolved
2009-11-07 14:10 lemeur Fixed in Version => 1.87RC1
2009-11-07 14:10 lemeur Resolution open => fixed
2009-11-13 16:40 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking