mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Merge pull request #2231 from biosistemika/SCI-4108-bug-at-report-generation
SCI-4108 Docx report error because of checklist does not have any item
This commit is contained in:
commit
d74cad3b8c
1 changed files with 7 additions and 5 deletions
|
@ -21,6 +21,7 @@ module Reports::Docx::DrawStepChecklist
|
||||||
text I18n.t('projects.reports.elements.step_checklist.user_time',
|
text I18n.t('projects.reports.elements.step_checklist.user_time',
|
||||||
timestamp: I18n.l(timestamp, format: :full)), color: color[:gray]
|
timestamp: I18n.l(timestamp, format: :full)), color: color[:gray]
|
||||||
end
|
end
|
||||||
|
if items.any?
|
||||||
@docx.ul do
|
@docx.ul do
|
||||||
items.each do |item|
|
items.each do |item|
|
||||||
li do
|
li do
|
||||||
|
@ -30,4 +31,5 @@ module Reports::Docx::DrawStepChecklist
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue