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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-06 21:09:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-06 21:09:02 +0300
commit0c4a28ded2d4539eafa7ff077c34682227b43292 (patch)
tree2502827b071a2b8b661572edd1b843415c272270 /app/services/issuable_links
parent2e1b10493f9ed9685eb892ab747335983e58f154 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/issuable_links')
-rw-r--r--app/services/issuable_links/destroy_service.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/services/issuable_links/destroy_service.rb b/app/services/issuable_links/destroy_service.rb
index 57e1314e0da..28035bbb291 100644
--- a/app/services/issuable_links/destroy_service.rb
+++ b/app/services/issuable_links/destroy_service.rb
@@ -15,14 +15,18 @@ module IssuableLinks
return error(not_found_message, 404) unless permission_to_remove_relation?
remove_relation
- create_notes
- track_event
+ after_destroy
success(message: 'Relation was removed')
end
private
+ def after_destroy
+ create_notes
+ track_event
+ end
+
def remove_relation
link.destroy!
end