Skip to content

Commit

Permalink
[api] the owner needs to be just the login for the webui
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 13, 2012
1 parent 69b2a7b commit 3beaa24
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/api/app/models/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,9 @@ def webui_infos
issue[:state] = self.state if self.state
issue[:summary] = self.summary if self.summary

# self.owner must not by used, since it is reserved by rails
o = User.find_by_id self.owner_id
if o
# self.owner must not by used, since it is reserved by rails
issue[:owner] = {
login: o.login,
email: o.email,
realname: o.realname
}
end
issue[:owner] = o.login if o
return issue
end

Expand Down

0 comments on commit 3beaa24

Please sign in to comment.