summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 20:25:25 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 20:25:25 +0200
commit67896ea9a258eee8bb8ecca849d59f48e16ac77a (patch)
tree000ab00d8ad6a7f6fa17266205d9f216e47b5678 /lib
parent6a9e7dc55bbf7bedaee1870763132d65dad15be9 (diff)
downloadgitlab-ce-67896ea9a258eee8bb8ecca849d59f48e16ac77a.tar.gz
Fixed missing current user for issue observer
Diffstat (limited to 'lib')
-rw-r--r--lib/api/issues.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index 3be558816b5..4d832fbe593 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -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