diff --git a/app/models/concerns/exportable_plan.rb b/app/models/concerns/exportable_plan.rb index b9254b8..020d4fb 100644 --- a/app/models/concerns/exportable_plan.rb +++ b/app/models/concerns/exportable_plan.rb @@ -56,15 +56,7 @@ phase.sections.each do |section| sctn = { title: section.title, number: section.number, questions: [] } section.questions.each do |question| - txt = [] - if question.question_format.option_based? - opts = QuestionOption.where(question_id: question.id) - opts.each do |opt| - txt << opt.text - end - else - txt << question.text - end + txt = question.text sctn[:questions] << { id: question.id, text: txt, format: question.question_format } end phs[:sections] << sctn diff --git a/app/views/shared/export/_plan.erb b/app/views/shared/export/_plan.erb index 14572f9..d6db153 100644 --- a/app/views/shared/export/_plan.erb +++ b/app/views/shared/export/_plan.erb @@ -44,16 +44,7 @@ <% section[:questions].each do |question| %>
<%= raw question[:text][0].gsub(/
<%= raw question[:text].gsub(/