Skip to content

Commit

Permalink
Fixed issue #13903: Get parameters do not work with tokenized survey
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Aug 30, 2018
1 parent 25296b6 commit 6e33c92
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -5004,12 +5004,11 @@ public static function StartSurvey($surveyid,$surveyMode='group',$aSurveyOptions
$LEM->indexQseq=array();
$LEM->qrootVarName2arrayFilter=array();

// set seed key for non-activated survey mode, activated mode already have seed key,
// to be able to pass count of startingValues check at next IF
if (!$LEM->surveyOptions['active'] || $LEM->sPreviewMode){
// set seed key if it doesn't exist to be able to pass count of startingValues check at next IF
if (!array_key_exists('seed', $_SESSION[$LEM->sessid]['startingValues'])){
$_SESSION[$LEM->sessid]['startingValues']['seed'] = '';
}

// NOTE: now that we use a seed, count($_SESSION[$LEM->sessid]['startingValues']) start at 1
if (isset($_SESSION[$LEM->sessid]['startingValues']) && is_array($_SESSION[$LEM->sessid]['startingValues']) && count($_SESSION[$LEM->sessid]['startingValues']) > 1)
{
Expand Down

0 comments on commit 6e33c92

Please sign in to comment.