Fixed missing current user for issue observer

This commit is contained in:
Dmitriy Zaporozhets 2013-01-02 20:25:25 +02:00
parent 6a9e7dc55b
commit 67896ea9a2
3 changed files with 25 additions and 25 deletions

View file

@ -78,6 +78,7 @@ module Gitlab
attrs = attributes_for_keys [:title, :description, :assignee_id, :milestone_id, :closed]
attrs[:label_list] = params[:labels] if params[:labels].present?
IssueObserver.current_user = current_user
if @issue.update_attributes attrs
present @issue, with: Entities::Issue
else