From 37e1c4615269b474f1f08fa23f83a1081d0eb247 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 18 Aug 2023 11:35:24 +0200 Subject: [PATCH] Hide result title in docx [SCI-9062] --- app/services/reports/docx/draw_my_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/reports/docx/draw_my_module.rb b/app/services/reports/docx/draw_my_module.rb index 7f0f5380e..8b1080d17 100644 --- a/app/services/reports/docx/draw_my_module.rb +++ b/app/services/reports/docx/draw_my_module.rb @@ -70,7 +70,7 @@ module Reports::Docx::DrawMyModule draw_step(step) end - @docx.h4 I18n.t('Results') if my_module.results.any? + @docx.h4 I18n.t('Results') if my_module.results.any? && (%w(file_results table_results text_results).any? { |k| @settings.dig('task', k) }) order_results_for_report(my_module.results, @settings.dig('task', 'result_order')).each do |result| if result.is_asset && @settings.dig('task', 'file_results') draw_result_asset(result, @settings)