Skip to content

Commit

Permalink
Fixed issue: Various problems when reloading a saved entry on a surve…
Browse files Browse the repository at this point in the history
…y using tokens and anonymized responses
  • Loading branch information
c-schmitz committed Jun 9, 2013
1 parent 5964315 commit c1385cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion application/controllers/survey/index.php
Expand Up @@ -431,8 +431,9 @@ function sendreq(surveyid)
}

// Load session before loading the values from the saved data
if (isset($_GET['loadall']))
if (isset($_POST['loadall']))
{
LimeExpressionManager::SetDirtyFlag();
buildsurveysession($surveyid);
}

Expand Down
5 changes: 1 addition & 4 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -4702,10 +4702,7 @@ private function _UpdateValuesInDatabase($updatedValues, $finished=false)
}

}
else if ($this->surveyOptions['allowsave'] && isset($_SESSION[$this->sessid]['scid']))
{
SavedControl::model()->updateByPk($_SESSION[$this->sessid]['scid'], array('saved_thisstep'=>$thisstep));
}

// Check Quotas
$bQuotaMatched = false;
$aQuotas = checkQuota('return', $this->sid);
Expand Down

0 comments on commit c1385cd

Please sign in to comment.