Skip to content

Commit

Permalink
Fixed issue #08473: Resume later leads to lose answers
Browse files Browse the repository at this point in the history
Dev:remove private $bProcessPost because it's keep on submit
  • Loading branch information
Shnoulle committed Dec 19, 2013
1 parent 6ef884d commit f3655a1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -62,13 +62,6 @@ class LimeExpressionManager {
* @var string
*/
private $sPreviewMode=false;
/**
/**
* bProcessPost save value to DB
* Maybe we can set it public
* @var bool
*/
private $bProcessPost=true;
/**
* Collection of variable attributes, indexed by SGQA code
*
Expand Down Expand Up @@ -4472,7 +4465,6 @@ static function StartSurvey($surveyid,$surveyMode='group',$aSurveyOptions=NULL,$
$LEM =& LimeExpressionManager::singleton();
$LEM->sid=sanitize_int($surveyid);
$LEM->sessid = 'survey_' . $LEM->sid;

$LEM->em->StartProcessingGroup($surveyid);
if (is_null($aSurveyOptions)) {
$aSurveyOptions = array();
Expand Down Expand Up @@ -4951,7 +4943,7 @@ private function _UpdateValuesInDatabase($updatedValues, $finished=false)
// TODO - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
$updatedValues = $this->updatedValues;
$message = '';
if (!$this->surveyOptions['active'] || !$this->bProcessPost)
if (!$this->surveyOptions['active'] || $this->sPreviewMode)
{
return $message;
}
Expand Down Expand Up @@ -5187,8 +5179,8 @@ static function JumpTo($seq,$preview=false,$processPOST=true,$force=false,$chang

if(!$preview)
$preview=$LEM->sPreviewMode;
if(!$processPOST || $preview)
$LEM->bProcessPost=false;
if(!$LEM->sPreviewMode && $preview)
$LEM->sPreviewMode=$preview;

if ($changeLang)
{
Expand Down

0 comments on commit f3655a1

Please sign in to comment.