Merge pull request #3087 from urbanrotnik/ur-sci-5397-folder-link-in-activities

Fix folder's activities links [SCI-5397]
This commit is contained in:
Urban Rotnik 2021-01-15 13:52:55 +01:00 committed by GitHub
commit 2fa54d7898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ module GlobalActivitiesHelper
when Report
path = reports_path(team: obj.team.id)
when ProjectFolder
path = projects_path
path = project_folder_path(obj, team: obj.team.id)
else
return current_value
end

View file

@ -4,7 +4,7 @@
<span class="fas fa-folder"></span>
<% if subject %>
<% path = projects_path(team: team) %>
<% path = project_folder_path(subject, team: team) %>
<%= route_to_other_team(path,
team,
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),