Skip to content

Commit

Permalink
Fixed issue: Error on survey reactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 25, 2012
1 parent c62d85a commit fa020a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/Survey_links.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function getLinkInfo($participantid)
*
* */
function rebuildLinksFromTokenTable($iSurveyId) {
$this->deleteLinksBySurvey($iSurveyId);
$tableName="{{tokens_".$iSurveyId."}}";
$dateCreated=date(DATE_W3C, time());
$query = "INSERT INTO ".Survey_links::tableName()." (participant_id, token_id, survey_id, date_created) SELECT participant_id, tid, '".$iSurveyId."', '".$dateCreated."' FROM ".$tableName." WHERE participant_id IS NOT NULL";
Expand Down

0 comments on commit fa020a8

Please sign in to comment.