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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update event_path() for TimeEntry activity items
Mir Bhatiaff8a37965296
diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erbindex fa402f21f11..f974f68a834 100644--- a/app/components/activities/item_component.html.erb+++ b/app/components/activities/item_component.html.erb@@ -1,6 +1,5 @@<li class="op-activity-list--item"><div class="op-activity-list--item-title">- <%= link_to @event.event_title.squish, @event.journal.journable_type == 'TimeEntry' ? "/work_packages/#{@event.journal.journable.work_package_id}" : @event.event_path %><%= link_to @event.event_title.squish, @event.event_path %><%= project_suffix %></div>diff --git a/modules/costs/app/models/activities/time_entry_activity_provider.rb b/modules/costs/app/models/activities/time_entry_activity_provider.rbindex a0db2b4ecad..4cb2e99019e 100644--- a/modules/costs/app/models/activities/time_entry_activity_provider.rb+++ b/modules/costs/app/models/activities/time_entry_activity_provider.rb@@ -68,7 +68,7 @@ class Activities::TimeEntryActivityProvider < Activities::BaseActivityProviderenddef event_path(event)- event_location(event)+ "/work_packages/#{event['work_package_id']}"enddef event_url(event)