Skip to content

Commit

Permalink
Dev: unattached active survey context from preview testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 30, 2017
1 parent 8f6cc4d commit 5936e01
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -161,7 +161,10 @@ public function run($surveyid,$args)
$qSec = LimeExpressionManager::GetQuestionSeq($_qid);
$moveResult = LimeExpressionManager::JumpTo($qSec+1,true,false,true);
$stepInfo = $this->stepInfo = LimeExpressionManager::GetStepIndexInfo($moveResult['seq']);
}else{
}

if ( !$previewgrp && !$surveyMode)
{
if (($show_empty_group) || !isset($_SESSION[$LEMsessid]['grouplist'])){
$gid = -1; // Make sure the gid is unused. This will assure that the foreach (fieldarray as ia) has no effect.
$groupname = gT("Submit your answers");
Expand All @@ -181,7 +184,7 @@ public function run($surveyid,$args)




// NOTE: must stay after GET GROUP DETAIL because of ()$surveyMode == 'group' && $previewgrp) condition touching step
if ($_SESSION[$LEMsessid]['step'] > $_SESSION[$LEMsessid]['maxstep'])
{
$_SESSION[$LEMsessid]['maxstep'] = $_SESSION[$LEMsessid]['step'];
Expand Down

0 comments on commit 5936e01

Please sign in to comment.