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

Don't try to localize start_time if empty

Oliver Günthera1dc03b7937d
diff --git a/modules/meeting/app/models/recurring_meeting.rb b/modules/meeting/app/models/recurring_meeting.rb
index ce47b5dd998..218079c2673 100644
--- a/modules/meeting/app/models/recurring_meeting.rb
+++ b/modules/meeting/app/models/recurring_meeting.rb
@@ -129,6 +129,8 @@ class RecurringMeeting < ApplicationRecord
end
def weekday
+ return I18n.t(:label_empty_element) if start_time.blank?
+
I18n.l(start_time, format: "%A")
end