Fixed missing current user for issue observer
This commit is contained in:
parent
6a9e7dc55b
commit
67896ea9a2
3 changed files with 25 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue