Commit 2e07ee7f authored by Phil Hughes's avatar Phil Hughes

Fixed failing tests

parent dce43b4b
......@@ -23,7 +23,8 @@ module IssuablesHelper
def user_dropdown_label(user_id, default_label)
return "Unassigned" if user_id == "0"
user = @project.team.users.find_by(id: user_id)
user = @project.team.users.find_by(id: user_id) if @project
user = User.find_by_id(user_id) if !@project
if user
user.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment