mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Hide result title in docx [SCI-9062]
This commit is contained in:
parent
d81e2a0e47
commit
37e1c46152
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue