Skip to content

Commit

Permalink
Merge pull request #3085 from DMPRoadmap/bug_dcc_674_csv_download_pla…
Browse files Browse the repository at this point in the history
…ns_fails_for_admins

Issue DCC-674: Fix for broken CSV Download noticed because a nil
  • Loading branch information
raycarrick-ed authored Feb 1, 2022
2 parents 001e52a + 6bcc6a2 commit 08e862c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/exportable_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def show_section_for_csv(csv, phase, section, headings, unanswered, hash)
answer_text = ''
if answer.present?
answer_text += answer.question_options.pluck(:text).join(', ') if answer.question_options.any?
answer_text += answer.text if answer.answered?
answer_text += answer.text if answer.answered? && answer.text.present?
elsif unanswered
answer_text += _('Not Answered')
end
Expand Down

0 comments on commit 08e862c

Please sign in to comment.