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 current date for "+ Log Time" button

Klaus Zanders1a80699b8c14
diff --git a/modules/costs/app/components/my/time_tracking/sub_header_component.html.erb b/modules/costs/app/components/my/time_tracking/sub_header_component.html.erb
index e33cb36064c..cfa2a6e89ba 100644
--- a/modules/costs/app/components/my/time_tracking/sub_header_component.html.erb
+++ b/modules/costs/app/components/my/time_tracking/sub_header_component.html.erb
@@ -22,7 +22,7 @@
data: { "turbo-stream" => true },
aria: { "label" => t(:button_log_time) },
tag: :a,
- href: dialog_time_entries_path(onlyMe: true)
+ href: dialog_time_entries_path(onlyMe: true, date: date.iso8601)
) do |button|
button.with_leading_visual_icon(icon: "plus")
t(:button_add_time_entry)