Hide result title in docx [SCI-9062]

This commit is contained in:
Anton 2023-08-18 11:35:24 +02:00
parent d81e2a0e47
commit 37e1c46152

View file

@ -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)