From 6e33c92311df9c10f0c910e29ee1c7fc20da25c4 Mon Sep 17 00:00:00 2001 From: Dominik Vitt Date: Thu, 30 Aug 2018 18:34:48 +0200 Subject: [PATCH] Fixed issue #13903: Get parameters do not work with tokenized survey --- application/helpers/expressions/em_manager_helper.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/helpers/expressions/em_manager_helper.php b/application/helpers/expressions/em_manager_helper.php index 1c2a267d1ee..4b910f34cae 100644 --- a/application/helpers/expressions/em_manager_helper.php +++ b/application/helpers/expressions/em_manager_helper.php @@ -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) {