Change current_team to target team, add id param to link

This commit is contained in:
Urban Rotnik 2020-04-23 12:40:43 +02:00
parent 9ed4a442d8
commit 38c198705c
2 changed files with 4 additions and 4 deletions

View file

@ -122,10 +122,10 @@ module Users
Activities::CreateActivityService
.call(activity_type: :invite_user_to_team,
owner: current_user,
subject: current_team,
team: current_team,
subject: @team,
team: @team,
message_items: {
team: current_team.id,
team: @team.id,
user_invited: user.id,
role: user_team.role_str
})

View file

@ -42,7 +42,7 @@ module GlobalActivitiesHelper
# Not link for now
return current_value
when Team
path = projects_path
path = projects_path(team: obj.id)
when Repository
path = repository_path(obj)
when RepositoryRow