From 840cf3d37c36e47aa2c488b5bc9baa39815b6450 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Tue, 29 Sep 2009 07:01:37 +0000 Subject: [PATCH] New feature - allow time_limit_action to progress to next page in group-by-group mode if there is only one question being displayed. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@7690 b72ed6b6-b9f8-46b5-92b4-906544132732 --- qanda.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/qanda.php b/qanda.php index d0748adbc00..cfc6b4a6ebf 100644 --- a/qanda.php +++ b/qanda.php @@ -1033,9 +1033,18 @@ function countdown(questionid,timer,action,warning,warninghide,disable){ if($thissurvey['format'] == "G") { + global $gid; + $qcount=0; + foreach($_SESSION['fieldarray'] as $ib) { + if($ib[5] == $gid) { + $qcount++; + } + } //Override all other options and just allow freezing, survey is presented in group by group mode - $output .=" - action = 3;"; + if($qcount > 1) { + $output .=" + action = 3;"; + } } $output .=" var timerdisplay='LS_question'+questionid+'_Timer';