Skip to content

Commit

Permalink
Fixed issue #8231: Anonymous survery with tokens allow multiple respo…
Browse files Browse the repository at this point in the history
…nses directly after token table creation
  • Loading branch information
c-schmitz committed Oct 21, 2013
1 parent 25e5830 commit e013e49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/tokens.php
Expand Up @@ -2369,6 +2369,7 @@ function _newtokentable($iSurveyId)
if (Yii::app()->request->getQuery('createtable') == "Y")
{
createTokenTable($iSurveyId);
LimeExpressionManager::SetDirtyFlag(); // LimeExpressionManager needs to know about the new token table
$this->_renderWrappedTemplate('token', array('message' =>array(
'title' => $clang->gT("Token control"),
'message' => $clang->gT("A token table has been created for this survey.") . " (\"" . Yii::app()->db->tablePrefix . "tokens_$iSurveyId\")<br /><br />\n"
Expand Down
3 changes: 0 additions & 3 deletions application/helpers/admin/activate_helper.php
Expand Up @@ -251,8 +251,6 @@ function checkQuestions($postsid, $iSurveyID, $qtypes)

function activateSurvey($iSurveyID, $simulate = false)
{


$createsurvey='';
$activateoutput='';
$createsurveytimings='';
Expand Down Expand Up @@ -463,7 +461,6 @@ function activateSurvey($iSurveyID, $simulate = false)
}
$acquery = "UPDATE {{surveys}} SET active='Y' WHERE sid=".$iSurveyID;
$acresult = Yii::app()->db->createCommand($acquery)->query();

return $aResult;
}

Expand Down
Expand Up @@ -231,10 +231,8 @@

</div>
<br/>
<table id="displayparticipants"></table> <div id="pager"></div>
<p><input type="button" name="addtosurvey" id="addtosurvey" value="<?php $clang->eT("Add to survey") ?>" />
</p>

<table id="displayparticipants"></table>
<div id="pager"></div>
<div id="fieldnotselected" title="<?php $clang->eT("Error") ?>" style="display:none">
<p>
<?php $clang->eT("Please select a field"); ?>
Expand Down

0 comments on commit e013e49

Please sign in to comment.