View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04797 | Bug reports | Survey taking | public | 2010-12-06 17:26 | 2011-06-05 23:00 |
Reporter | Assigned To | ||||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.90+ | ||||
Fixed in Version | 2.00a1 | ||||
Summary | 04797: In group-by-group mode, it's impossible to advance to the next page if a group is comprised entirely of hidden cond. questions | ||||
Description | In group-by-group mode, if a group is comprised entirely of conditional questions, and all the questions in the group are hidden as a result of the condition, it's impossible to advance in the survey. Clicking next will not advance to the next page. | ||||
Steps To Reproduce | Use the following layout in group-by-group mode:
Preview the survey. Select 'no' on the first question. Clicking 'next' will not jump to group 3 (current page stays at group 1). Adding a non-conditional question to group 2 will make 'next' work. See the attached survey. | ||||
Tags | No tags attached. | ||||
Attached Files | patch.diff (781 bytes)
Index: group.php =================================================================== --- group.php (revision 9698) +++ group.php (working copy) @@ -24,7 +24,8 @@ $show_empty_group = false; if (!isset($homedir) || isset($_REQUEST['$homedir'])) {die("Cannot run this script directly");} -if ($previewgrp){ +if ($previewgrp) +{ $_SESSION['prevstep'] = 1; $_SESSION['maxstep'] = 0; } @@ -93,7 +94,7 @@ { while(isset($_SESSION['grouplist'][$_SESSION['step']-1]) && checkgroupfordisplay($_SESSION['grouplist'][$_SESSION['step']-1][0]) === false) { - if ($_SESSION['prevstep'] <= $_SESSION['step']) + if ($_SESSION['prevstep'] > $_SESSION['step']) { $_SESSION['step']=$_SESSION['step']-1; } | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 9586 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | - | ||||
Server OS (if known) | - | ||||
Webserver software & version (if known) | - | ||||
PHP Version | - | ||||
I can't reproduce the pb with the attached survey on my 9624 (svn version). |
|
I cleaned the DB and imported from scratch just to be sure. |
|
tpartner confirms it's working great for him as well. Can you test with different browsers ? Thibault |
|
Tested with Firefox, IE and Chrome. |
|
Forgot: the DB backend is mysql 5.1.41. |
|
Humm, I've got same setup here (magic quotes Off, debug=3, so STRICT mode ON), but I still can't reproduce the pb. Might be something else... but what ? |
|
wavexx, any feedback ? |
|
Still reproducible here with the submitted survey. I didn't have time to do a debugging session on this yet, so please leave the bug open. I will try to see if this affects the latest RC. LS seems to be stuck on a loop in group.php while checking conditions (but as I said, I didn't trace down the reason yet). |
|
I've additionally discovered that if you add another page, depending on the first condition:
You cannot advance beyond q2 even if you pick "yes". |
|
Ok, I think I've nailed it down. Can somebody doublecheck this? group.php:97 reads:
but if you look carefully, the condition is reversed. If prevstep is <= step it means we're going forward, not backward. Changing it to:
fixes the problem for me. |
|
Patch attached (just let me know if that works, so I can commit). |
|
Any news? I think this bug is pretty serious for the release. |
|
Carsten, |
|
Wavexx, your explanation makes sense. If you tested it please commit. |
|
Committed in 09734. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-12-06 17:26 |
|
New Issue | |
2010-12-06 17:26 |
|
File Added: limesurvey_survey_59528.lss | |
2010-12-07 14:11 | c_schmitz | Assigned To | => lemeur |
2010-12-07 14:11 | c_schmitz | Status | new => assigned |
2010-12-11 09:23 | lemeur | Note Added: 13751 | |
2010-12-11 09:23 | lemeur | Status | assigned => feedback |
2010-12-13 18:32 |
|
Note Added: 13774 | |
2010-12-13 18:32 |
|
Status | feedback => assigned |
2010-12-14 22:04 | lemeur | Note Added: 13784 | |
2010-12-14 22:36 | Mazi | Status | assigned => feedback |
2010-12-16 12:46 |
|
Note Added: 13804 | |
2010-12-16 12:46 |
|
Status | feedback => assigned |
2010-12-16 12:48 |
|
Note Added: 13805 | |
2010-12-16 22:36 | lemeur | Note Added: 13808 | |
2010-12-21 18:46 | lemeur | Status | assigned => feedback |
2011-01-09 12:12 | lemeur | Note Added: 13869 | |
2011-01-10 16:11 |
|
Note Added: 13873 | |
2011-01-10 16:11 |
|
Status | feedback => assigned |
2011-01-17 17:36 |
|
Note Added: 13936 | |
2011-01-17 18:28 |
|
Note Added: 13937 | |
2011-01-17 18:29 |
|
File Added: patch.diff | |
2011-01-17 18:29 |
|
Note Added: 13938 | |
2011-01-19 17:22 |
|
Note Added: 13946 | |
2011-01-19 17:31 | lemeur | Assigned To | lemeur => c_schmitz |
2011-01-19 17:31 | lemeur | Note Added: 13947 | |
2011-01-26 22:49 | c_schmitz | Assigned To | c_schmitz => user9586 |
2011-01-26 22:49 | c_schmitz | Note Added: 13982 | |
2011-01-31 10:50 |
|
Note Added: 14002 | |
2011-01-31 10:51 |
|
Status | assigned => resolved |
2011-01-31 10:51 |
|
Fixed in Version | => 2.00a1 |
2011-01-31 10:51 |
|
Resolution | open => fixed |
2011-06-05 23:00 | c_schmitz | Status | resolved => closed |