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

Set default title

Oliver Güntherd76843389e9b
diff --git a/modules/meeting/app/models/meeting_section.rb b/modules/meeting/app/models/meeting_section.rb
index df782a9068d..0acb98b6824 100644
--- a/modules/meeting/app/models/meeting_section.rb
+++ b/modules/meeting/app/models/meeting_section.rb
@@ -52,7 +52,7 @@ class MeetingSection < ApplicationRecord
def set_default_title
if title.blank?
- self.title = I18n.t("meeting_section.untitled_title")
+ self.title = I18n.t("meeting_section.default_title")
end
end
diff --git a/modules/meeting/spec/models/meeting_section_spec.rb b/modules/meeting/spec/models/meeting_section_spec.rb
index 328fe03e7ed..3dd9ea35d41 100644
--- a/modules/meeting/spec/models/meeting_section_spec.rb
+++ b/modules/meeting/spec/models/meeting_section_spec.rb
@@ -44,7 +44,7 @@ RSpec.describe MeetingSection do
it "sets a default title" do
expect(subject).to be_valid
- expect(subject.title).to eq I18n.t("meeting_section.untitled_title")
+ expect(subject.title).to eq I18n.t("meeting_section.default_title")
end
end
@@ -53,7 +53,7 @@ RSpec.describe MeetingSection do
it "sets a default title" do
expect(subject).to be_valid
- expect(subject.title).to eq I18n.t("meeting_section.untitled_title")
+ expect(subject.title).to eq I18n.t("meeting_section.default_title")
end
end