Skip to content

Commit

Permalink
Dev: removed $bStartSurvey from controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 10, 2017
1 parent 7142424 commit 6170838
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions application/controllers/PrintanswersController.php
Expand Up @@ -28,8 +28,6 @@ class PrintanswersController extends LSYii_Controller {
public $aReplacementData= array();
/* @var array Global data when use templatereplace function in layout, @see templatereplace $redata */
public $aGlobalData= array();
/* @var boolean did we need survey.pstpl when using layout */
public $bStartSurvey= false;


/**
Expand Down
3 changes: 1 addition & 2 deletions application/controllers/RegisterController.php
Expand Up @@ -29,8 +29,7 @@ class RegisterController extends LSYii_Controller {
public $aReplacementData= array();
/* @var array Global data when use templatereplace function in layout, @see templatereplace $redata */
public $aGlobalData= array();
/* @var boolean did we need survey.pstpl when using layout */
public $bStartSurvey= true;


/**
* The array of errors to be displayed
Expand Down
3 changes: 1 addition & 2 deletions application/controllers/SurveyController.php
Expand Up @@ -23,8 +23,7 @@ class SurveyController extends LSYii_Controller
public $aReplacementData= array();
/* @var array Global data when use templatereplace function in layout, @see templatereplace $redata */
public $aGlobalData= array();
/* @var boolean did we need survey.pstpl when using layout */
public $bStartSurvey= false;

/**
* Initialises this controller, does some basic checks and setups
*
Expand Down
2 changes: 0 additions & 2 deletions application/controllers/SurveysController.php
Expand Up @@ -14,8 +14,6 @@ class SurveysController extends LSYii_Controller
public $aReplacementData= array();
/* @var array Global data when use templatereplace function in layout, @see templatereplace $redata */
public $aGlobalData= array();
/* @var boolean did we need survey.pstpl when using layout */
public $bStartSurvey= false;

public $defaultAction = 'publicList';

Expand Down
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1887,7 +1887,7 @@ private function setGroup()

if ( !$this->previewgrp && !$this->previewquestion)
{
if (($show_empty_group) || !isset($_SESSION[$LEMsessid]['grouplist'])){
if (($this->show_empty_group) || !isset($_SESSION[$LEMsessid]['grouplist'])){
$this->gid = -1; // Make sure the gid is unused. This will assure that the foreach (fieldarray as ia) has no effect.
$this->groupname = gT("Submit your answers");
$this->groupdescription = gT("There are no more questions. Please press the <Submit> button to finish this survey.");
Expand Down

0 comments on commit 6170838

Please sign in to comment.