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

Merge branch 'release/14.1' into fix/new-section-title

Oliver Günther48bfba0195e6
diff --cc modules/meeting/config/locales/en.yml
index 9361fe97c7c,1c16909fa8c..e026f274d7f
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@@ -143,7 -143,9 +143,8 @@@ en
copied: "Copied from Meeting #%{id}"
meeting_section:
+ untitled_title: "Untitled section"
+ delete_confirmation: "Deleting the section will also delete all of its agenda items. Are you sure you want to do this?"
- default_title: "New section"
- untitled_title: "Untitled"
empty_text: "Drag items here or create a new one"
notice_successful_notification: "Notification sent successfully"
diff --cc modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
index fb62aee232f,9f67bbe7ac0..7469f18899d
--- a/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
+++ b/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
@@@ -449,21 -420,16 +449,16 @@@ RSpec.describe "Structured meetings CRU
show_page.expect_section_duration(section: second_section, duration_text: "15 min")
# deleting a section with agenda items is not possible
- show_page.select_section_action(second_section, "Delete") # delete is disabled
- ## -> no effect
- show_page.expect_section(title: "Untitled section")
- show_page.expect_section(title: "Second section")
-
- show_page.click_on_section_menu(second_section) # close the menu again
-
- # deleting a section without agenda items is possible
- show_page.remove_agenda_item(item_in_second_section)
- show_page.remove_section(second_section) # empty secion gets deleted
+ accept_confirm do
+ show_page.select_section_action(second_section, "Delete")
+ end
- # only untitle secion is left -> will not be rendered explicitly as secion
+ # only untitled secion is left -> will not be rendered explicitly as secion
- show_page.expect_no_section(title: "Untitled")
+ show_page.expect_no_section(title: "Untitled section")
show_page.expect_no_section(title: "Second section")
+ expect { item_in_second_section.reload }.to raise_error(ActiveRecord::RecordNotFound)
+
# the agenda items of the "untitled" section are still visible in "no-section mode"
show_page.expect_agenda_item(title: item_in_first_section.title)
end