View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 04784 | Bug reports | Survey taking | public | 2010-12-03 17:11 | 2010-12-04 02:03 |
| Reporter | Assigned To | c_schmitz | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.90+ | ||||
| Summary | 04784: Fix 'Previous' button in group-by-group mode when allowjumps is enabled (dev version). | ||||
| Description | When allowjumps is enabled, allowprev is overridden in my jumping patch. Currently the previous button in group-by-group mode is shown, but it doesn't work unless allowprev is also enabled (allowprev should be completely overridden here). This patch fixes group-by-group (question by question is already ok). | ||||
| Tags | No tags attached. | ||||
| Attached Files | svn-patch.diff (925 bytes)
Index: group.php
===================================================================
--- group.php (revision 9572)
+++ group.php (working copy)
@@ -36,10 +36,14 @@
$_SESSION['prevstep']=$_SESSION['step'];
//Move current step ###########################################################################
- if (isset($move) && $move == 'moveprev' && $thissurvey['allowprev']=='Y') {$_SESSION['step'] = $thisstep-1;}
- if (isset($move) && $move == "movenext") {
+ if (isset($move) && $move == 'moveprev' && ($thissurvey['allowprev']=='Y' || $thissurvey['allowjumps']=='Y'))
+ {
+ $_SESSION['step'] = $thisstep-1;
+ }
+ if (isset($move) && $move == "movenext")
+ {
if ($_SESSION['step']==$thisstep)
- $_SESSION['step'] = $thisstep+1;
+ $_SESSION['step'] = $thisstep+1;
}
if (isset($move) && bIsNumericInt($move) && $thissurvey['allowjumps']=='Y')
{
| ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 9572 | ||||
| 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 | - | ||||
| Git branch / Pull Request URL | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-12-03 17:11 |
|
New Issue | |
| 2010-12-03 17:11 |
|
File Added: svn-patch.diff | |
| 2010-12-04 02:03 | c_schmitz | Note Added: 13685 | |
| 2010-12-04 02:03 | c_schmitz | Status | new => closed |
| 2010-12-04 02:03 | c_schmitz | Assigned To | => c_schmitz |
| 2010-12-04 02:03 | c_schmitz | Resolution | open => fixed |