diff --git a/application/models/ressource/CoodleSurveyParticipant_model.php b/application/models/ressource/CoodleSurveyParticipant_model.php index df091b43e..15605b282 100644 --- a/application/models/ressource/CoodleSurveyParticipant_model.php +++ b/application/models/ressource/CoodleSurveyParticipant_model.php @@ -115,7 +115,7 @@ class CoodleSurveyParticipant_model extends DB_Model public function updateSelection($surveyId, $participantUid, $selection) { - $selectionUpdateQuery = "UPDATE $this->dbTable SET selection = $selection WHERE survey_id = $surveyId AND participant_uid = '$participantUid'"; + $selectionUpdateQuery = "UPDATE $this->dbTable SET selection = '$selection' WHERE survey_id = $surveyId AND participant_uid = '$participantUid'"; $this->execQuery($selectionUpdateQuery); } }