adding user who answered a survey with neutral link

1.9.x
Yoselyn Castillo 11 years ago
parent ad5b66254e
commit baba9388f9
  1. 4
      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

Loading…
Cancel
Save