diff --git a/inc/formanswer.class.php b/inc/formanswer.class.php
index bced78bfa..57cc2ab6c 100644
--- a/inc/formanswer.class.php
+++ b/inc/formanswer.class.php
@@ -1110,11 +1110,7 @@ public function getFullForm($richText = false): string {
}
// Don't save tags in "full form"
- if ($question_line['fieldtype'] == 'tag') {
- continue;
- }
-
- if ($question_line['fieldtype'] == 'fields') {
+ if (in_array($question_line['fieldtype'], ['tag', 'fields', 'description'])) {
continue;
}
@@ -1122,17 +1118,15 @@ public function getFullForm($richText = false): string {
continue;
}
- if ($question_line['fieldtype'] != 'description') {
- $question_no++;
- if ($richText) {
- $output .= '
';
- $output .= '' . $question_no . ') ##question_' . $question_line['id'] . '## : ';
- $output .= '##answer_' . $question_line['id'] . '##';
- $output .= '
';
- } else {
- $output .= $question_no . ') ##question_' . $question_line['id'] . '## : ';
- $output .= '##answer_' . $question_line['id'] . '##' . $eol . $eol;
- }
+ $question_no++;
+ if ($richText) {
+ $output .= '';
+ $output .= '' . $question_no . ') ##question_' . $question_line['id'] . '## : ';
+ $output .= '##answer_' . $question_line['id'] . '##';
+ $output .= '
';
+ } else {
+ $output .= $question_no . ') ##question_' . $question_line['id'] . '## : ';
+ $output .= '##answer_' . $question_line['id'] . '##' . $eol . $eol;
}
}