diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 20:25:25 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 20:25:25 +0200 |
commit | 67896ea9a258eee8bb8ecca849d59f48e16ac77a (patch) | |
tree | 000ab00d8ad6a7f6fa17266205d9f216e47b5678 /lib/api/issues.rb | |
parent | 6a9e7dc55bbf7bedaee1870763132d65dad15be9 (diff) | |
download | gitlab-ce-67896ea9a258eee8bb8ecca849d59f48e16ac77a.tar.gz |
Fixed missing current user for issue observer
Diffstat (limited to 'lib/api/issues.rb')
-rw-r--r-- | lib/api/issues.rb | 1 |
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 |