Browse Source

Change added in line 224 too -refs #6175

Yoselyn Castillo 11 years ago
parent
commit
0e854bcb75
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/survey/fillsurvey.php

+ 3 - 1
main/survey/fillsurvey.php

@@ -221,7 +221,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 to a question