Commit 1b5fb4ac2187c0a9cd775686740615a9e2311646

Authored by Dmitriy Zaporozhets
1 parent 7d8d9bd1

Fix assignee change in Issues::UpdateService

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/services/issues/update_service.rb
@@ -13,7 +13,7 @@ module Issues @@ -13,7 +13,7 @@ module Issues
13 if params.present? && issue.update_attributes(params) 13 if params.present? && issue.update_attributes(params)
14 issue.reset_events_cache 14 issue.reset_events_cache
15 15
16 - if issue.is_being_reassigned? 16 + if issue.previous_changes.include?('assignee_id')
17 notification_service.reassigned_issue(issue, current_user) 17 notification_service.reassigned_issue(issue, current_user)
18 create_assignee_note(issue) 18 create_assignee_note(issue)
19 end 19 end