Skip to content

Commit

Permalink
Fixed issue #06995: Unable to do survey with token
Browse files Browse the repository at this point in the history
Dev: just an 1.92 session var ...
  • Loading branch information
Shnoulle committed Dec 1, 2012
1 parent e31bd72 commit 9c81764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/survey/index.php
Expand Up @@ -602,7 +602,7 @@ function sendreq(surveyid)
// - a token information has been provided
// - the survey is setup to allow token-response-persistence

if (!isset($_SESSION['srid']) && $thissurvey['anonymized'] == "N" && $thissurvey['active'] == "Y" && isset($token) && $token !='')
if (!isset($_SESSION['survey_'.$surveyid]['srid']) && $thissurvey['anonymized'] == "N" && $thissurvey['active'] == "Y" && isset($token) && $token !='')
{
// load previous answers if any (dataentry with nosubmit)
$sQuery="SELECT id,submitdate,lastpage FROM {$thissurvey['tablename']} WHERE {$thissurvey['tablename']}.token='{$token}' order by id desc";
Expand Down

0 comments on commit 9c81764

Please sign in to comment.