From baba9388f9dd515184e49ee9f1ad63d4f1359d26 Mon Sep 17 00:00:00 2001 From: Yoselyn Castillo Date: Sun, 28 Jul 2013 06:12:26 -0400 Subject: [PATCH] adding user who answered a survey with neutral link --- main/survey/fillsurvey.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/survey/fillsurvey.php b/main/survey/fillsurvey.php index 8323b9fcac..397c51c18f 100644 --- a/main/survey/fillsurvey.php +++ b/main/survey/fillsurvey.php @@ -159,7 +159,9 @@ if (count($_POST) > 0) { while ($row = Database::fetch_array($result, 'ASSOC')) { $types[$row['question_id']] = $row['type']; } - + if ($survey_data['anonymous'] == 0) { + $survey_invitation['user'] = api_get_user_id(); + } // Looping through all the post values foreach ($_POST as $key => & $value) { // If the post value key contains the string 'question' then it is an answer on a question