Skip to content

Commit

Permalink
fix for missing body
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Sep 23, 2024
1 parent 229d23b commit 9d79e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/concerns/answer_questionnaire_override.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def send_notifications
body = if form_answer.choices.present?
form_answer.choices.map { |c| c.custom_body.present? ? "#{c.body} (#{c.custom_body})" : c.body }.join("<br>\n")
else
form_answer.body
form_answer.body.presence || "N/A"
end
[translated_attribute(form_answer.question.body), body]
end
Expand Down

0 comments on commit 9d79e5c

Please sign in to comment.