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

Use constant for default time

Kabiru Mwenjaafa9aedecda6
diff --git a/app/components/work_packages/reminder/modal_body_component.rb b/app/components/work_packages/reminder/modal_body_component.rb
index 13675204e21..1b06316f337 100644
--- a/app/components/work_packages/reminder/modal_body_component.rb
+++ b/app/components/work_packages/reminder/modal_body_component.rb
@@ -36,6 +36,7 @@ module WorkPackages
include OpPrimer::ComponentHelpers
FORM_ID = "reminder-form"
+ DEFAULT_TIME = "09:00"
attr_reader :remindable, :reminder, :errors, :preset
@@ -92,7 +93,7 @@ module WorkPackages
def remind_at_time_initial_value
return format_time(@reminder.remind_at, include_date: false, format: "%H:%M") if @reminder.remind_at
- "09:00"
+ DEFAULT_TIME
end
private