Skip to content

Commit

Permalink
Dev: quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 30, 2017
1 parent ad41d5a commit 8e446c9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -180,18 +180,6 @@ public function run($surveyid,$args)
$_SESSION[$LEMsessid]['maxstep'] = $_SESSION[$LEMsessid]['step'];
}

// If the survey uses answer persistence and a srid is registered in SESSION
// then loadanswers from this srid
/* Only survey mode used this - should all?
if ($thissurvey['tokenanswerspersistence'] == 'Y' &&
$thissurvey['anonymized'] == "N" &&
isset($_SESSION[$LEMsessid]['srid']) &&
$thissurvey['active'] == "Y")
{
loadanswers();
}
*/

//******************************************************************************************************
//PRESENT SURVEY
//******************************************************************************************************
Expand Down Expand Up @@ -805,8 +793,8 @@ private function getArgs()
private function setArgs()
{
if ($this->previewgrp || $this->previewquestion){
$_SESSION[$LEMsessid]['prevstep'] = 2;
$_SESSION[$LEMsessid]['maxstep'] = 0;
$_SESSION[$this->LEMsessid]['prevstep'] = 2;
$_SESSION[$this->LEMsessid]['maxstep'] = 0;
return array();
}else{
$this->runPage(); // main methods to init session, LEM, moves, errors, etc
Expand Down

0 comments on commit 8e446c9

Please sign in to comment.