Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

obey rubocop

as-op4c9cad39f24d
diff --git a/modules/meeting/app/workers/meetings/pdf/agenda.rb b/modules/meeting/app/workers/meetings/pdf/agenda.rb
index ead86de7f64..edeadaefdfb 100644
--- a/modules/meeting/app/workers/meetings/pdf/agenda.rb
+++ b/modules/meeting/app/workers/meetings/pdf/agenda.rb
@@ -53,13 +53,13 @@ module Meetings::PDF
def write_section(section, section_index)
write_optional_page_break
- write_section_title(section, section_index)
+ unless section.title.blank? && section_index == 0 && meeting.sections.count == 1
+ write_section_title(section, section_index)
+ end
write_agenda_items(section)
end
def write_section_title(section, section_index)
- return if section.title.blank? && section_index == 0 && meeting.sections.count == 1
-
margins = styles.agenda_section_title_table_margins
margins = margins.merge({ top_margin: 0 }) if section_index == 0
with_vertical_margin(margins) do