Survey: Fix export to PDF including open question

Fixes #3920
pull/4517/head
Angel Fernando Quiroz Campos 3 years ago
parent 64830792a8
commit 9c6c338147
  1. 2
      main/survey/surveyUtil.class.php

@ -853,7 +853,7 @@ class SurveyUtil
/** @todo This function should return the options as this is needed further in the code */ /** @todo This function should return the options as this is needed further in the code */
$options = self::display_question_report_score($survey_data, $question, $offset, $lpItemId); $options = self::display_question_report_score($survey_data, $question, $offset, $lpItemId);
} elseif ($question['type'] === 'open' || $question['type'] === 'comment') { } elseif ($question['type'] === 'open' || $question['type'] === 'comment') {
echo '<div class="open-question">'; echo '<div class="open-question" style="padding: 1px 0;">';
/** @todo Also get the user who has answered this */ /** @todo Also get the user who has answered this */
$sql = "SELECT * FROM $table_survey_answer $sql = "SELECT * FROM $table_survey_answer
WHERE WHERE

Loading…
Cancel
Save