View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04784Bug reportsSurvey takingpublic2010-12-04 02:03
Reporteruser9586Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Summary04784: 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).

TagsNo 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')
     {
svn-patch.diff (925 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)9572
I will donate to the project if issue is resolvedNo
Browser
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-12-04 02:03

administrator   ~13685

Thank you!

Issue History

Date Modified Username Field Change
2010-12-03 17:11 user9586 New Issue
2010-12-03 17:11 user9586 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