Fix displaying events for deleted things
This commit is contained in:
parent
baf94bd732
commit
19560a4b5f
2 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
module EventsHelper
|
||||
def link_to_author(event)
|
||||
project = event.project
|
||||
tm = project.team_member_by_id(event.author_id)
|
||||
tm = project.team_member_by_id(event.author_id) if project
|
||||
|
||||
if tm
|
||||
link_to event.author_name, project_team_member_path(project, tm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue