Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-16 13:47:00 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 09:39:15 +0300
commit9882802a8b70e998ff6850a3d096b3b52730ab85 (patch)
tree69403cc0e54d37c8cafcf978f023f23ad351abf9 /app/services/issues/move_service.rb
parent69b89d4ec8f9788dc11f30cdf1f782d316ab252c (diff)
Improve system notes that are added when issue is moved
Diffstat (limited to 'app/services/issues/move_service.rb')
-rw-r--r--app/services/issues/move_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb
index 49ec9609e1f..e2ab06ac332 100644
--- a/app/services/issues/move_service.rb
+++ b/app/services/issues/move_service.rb
@@ -4,6 +4,7 @@ module Issues
@issue_old = issue_old
@issue_new = issue_old.dup
@project_new = project_new
+ @project_old = @project
open_new_issue
rewrite_notes
@@ -33,10 +34,11 @@ module Issues
end
def add_note_moved_from
+ SystemNoteService.noteable_moved(:from, @issue_new, @project_new, @issue_old, @current_user)
end
def add_note_moved_to
- SystemNoteService.issue_moved_to_another_project(@issue_old, @project, @project_new, @current_user)
+ SystemNoteService.noteable_moved(:to, @issue_old, @project_old, @issue_new, @current_user)
end
end
end