View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05122Bug reportsSurvey editingpublic2011-05-15 12:27
Reporteruser7171Assigned Tojcleeland  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.91RC6 
Fixed in Version1.91+ 
Summary05122: Cascading feature not working
Description

The Cascading feature is not working as it should, For example if we have q1,q2 and q3 and we set q2 dependent on q1 and q3 dependent on q2 then the options chosen in q2 are not filtered.

Steps To Reproduce

Create three questions with same sub options and codes, filter question 2 with 1 and question 3 with 2 and execute the survey. The third question will carry all the options of the 2nd question.

TagsNo tags attached.
Attached Files
cascading.patch (730 bytes)   
Index: group.php
===================================================================
--- group.php	(revision 10017)
+++ group.php	(working copy)
@@ -1132,7 +1132,7 @@
 
                         foreach($array_filterXqs_cascades[$attralist['qid']] as $cascader)
                         {
-                            $cascadefqa ="java".$surveyid."X".$gid."X".$cascader.$fansrows['code'];
+                            $cascadefqa ="java".$surveyid."X".$gid."X".$cascader.$fansrows['title'];
                             $appendj .= "\t\t||\n";
                             $appendj .= "\t\t(document.getElementById('$cascadefqa') != null && document.getElementById('$cascadefqa').value == 'Y')\n";
                         }
cascading.patch (730 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)10001
I will donate to the project if issue is resolvedNo
BrowserAny
Database type & versionMysql
Server OS (if known)Linux
Webserver software & version (if known)LAMP
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

user7171

2011-04-23 13:42

  ~14857

Please review the attached patch.

user13605

2011-04-27 18:45

  ~14866

In my testing, this patch fixes the problem.

jcleeland

jcleeland

2011-05-09 14:12

reporter   ~14962

Thanks for submitting the patch, which is correct & fixes the bug. I've submitted the update and credited you :-)

This bug also affected all-in-one surveys. Fixed in rev 10043 and 10044

Issue History

Date Modified Username Field Change
2011-04-21 22:51 user7171 New Issue
2011-04-21 22:51 user7171 Status new => assigned
2011-04-21 22:51 user7171 Assigned To => user7171
2011-04-21 22:52 user7171 Description Updated
2011-04-21 22:53 user7171 Steps to Reproduce Updated
2011-04-21 23:00 user13605 Issue Monitored: user13605
2011-04-23 13:41 user7171 File Added: cascading.patch
2011-04-23 13:42 user7171 Note Added: 14857
2011-04-23 13:42 user7171 Assigned To user7171 => c_schmitz
2011-04-23 19:33 c_schmitz Assigned To c_schmitz => jcleeland
2011-04-27 18:45 user13605 Note Added: 14866
2011-05-09 14:12 jcleeland Note Added: 14962
2011-05-09 14:12 jcleeland Status assigned => resolved
2011-05-09 14:12 jcleeland Fixed in Version => 1.91+
2011-05-09 14:12 jcleeland Resolution open => fixed
2011-05-15 12:27 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing