We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6082a commit 0937bf0Copy full SHA for 0937bf0
1 file changed
app/presenters/api/v2/research_output_presenter.rb
@@ -62,7 +62,7 @@ def fetch_q_and_a(themes:)
62
ret = themes.map do |theme|
63
qs = @plan.questions.select { |q| q.themes.collect(&:title).include?(theme) }
64
descr = qs.map do |q|
65
- a = @plan.answers.find { |ans| ans.question_id = q.id }
+ a = @plan.answers.find { |ans| ans.question_id == q.id }
66
next unless a.present? && !a.blank?
67
68
"<strong>Question:</strong> #{q.text}<br><strong>Answer:</strong> #{a.text}"
0 commit comments