View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05122 | Bug reports | Survey editing | public | 2011-04-21 22:51 | 2011-05-15 12:27 |
Reporter | Assigned To | jcleeland | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.91RC6 | ||||
Fixed in Version | 1.91+ | ||||
Summary | 05122: 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. | ||||
Tags | No 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"; } | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 10001 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Any | ||||
Database type & version | Mysql | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | LAMP | ||||
PHP Version | 5.3 | ||||
Please review the attached patch. |
|
In my testing, this patch fixes the problem. |
|
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 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-21 22:51 |
|
New Issue | |
2011-04-21 22:51 |
|
Status | new => assigned |
2011-04-21 22:51 |
|
Assigned To | => user7171 |
2011-04-21 22:52 |
|
Description Updated | |
2011-04-21 22:53 |
|
Steps to Reproduce Updated | |
2011-04-21 23:00 |
|
Issue Monitored: user13605 | |
2011-04-23 13:41 |
|
File Added: cascading.patch | |
2011-04-23 13:42 |
|
Note Added: 14857 | |
2011-04-23 13:42 |
|
Assigned To | user7171 => c_schmitz |
2011-04-23 19:33 | c_schmitz | Assigned To | c_schmitz => jcleeland |
2011-04-27 18:45 |
|
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 |