From 39ca2c31dd95ebfa68dfb213a0411fa21d23f425 Mon Sep 17 00:00:00 2001 From: Andrie de Vries Date: Wed, 25 May 2011 05:03:26 +0000 Subject: [PATCH] Fixed issue 05163: Clicking on "<< Previous" in survey navigation jumped back to square one git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10118 b72ed6b6-b9f8-46b5-92b4-906544132732 --- question.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/question.php b/question.php index 81ae151b5c7..b52e28272f5 100644 --- a/question.php +++ b/question.php @@ -157,11 +157,16 @@ } else { - $currentquestion--; // if we reach -1, this means we must go back to first page - if ($currentquestion >= 0) + if ($currentquestion > 0) { + $currentquestion--; // if we reach -1, this means we must go back to first page + if(isset($_SESSION['fieldarray'][$currentquestion])) + { + $ia=$_SESSION['fieldarray'][$currentquestion]; + } $_SESSION['step']--; } + else { $_SESSION['step']=0; display_first_page();