Skip to content

Commit

Permalink
pass in format when printing c1 and c4 criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
dczulada committed Jul 24, 2023
1 parent 7605e70 commit 3e7d52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ def supplemental_test_artifact
def patients
crit_exists = !@product.product_tests.checklist_tests.empty?
filt_exists = !@product.product_tests.filtering_tests.empty?
criteria_list = crit_exists ? render_to_string(template: 'checklist_tests/print_criteria', layout: 'report') : nil
filtering_list = filt_exists ? render_to_string(template: 'checklist_tests/print_filtering', layout: 'report') : nil
criteria_list = crit_exists ? render_to_string(template: 'checklist_tests/print_criteria', layout: 'report', formats: :html) : nil
filtering_list = filt_exists ? render_to_string(template: 'checklist_tests/print_filtering', layout: 'report', formats: :html) : nil
file = Cypress::CreateTotalTestZip.create_total_test_zip(@product, criteria_list, filtering_list, 'qrda')
send_data file.read, type: 'application/zip', disposition: 'attachment', filename: "#{@product.name}_#{@product.id}.zip".tr(' ', '_')
end
Expand Down

0 comments on commit 3e7d52f

Please sign in to comment.