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:
authorEugenia Grieff <egrieff@gitlab.com>2019-07-18 21:52:10 +0300
committerBob Van Landuyt <bob@gitlab.com>2019-07-18 21:52:10 +0300
commit4b7cf4a54e95316a582d8df4211674d67b7cf1e2 (patch)
tree765ae9e5666071ef556294614bc225a8507e90bf /app/services/issuable
parent0b859d2f4fb3c7595f343fda0caa7dfc6919462b (diff)
CE port for milestones should not be set on epics issue promotion
Diffstat (limited to 'app/services/issuable')
-rw-r--r--app/services/issuable/clone/attributes_rewriter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/issuable/clone/attributes_rewriter.rb b/app/services/issuable/clone/attributes_rewriter.rb
index 0300cc0d8d3..3c061d35558 100644
--- a/app/services/issuable/clone/attributes_rewriter.rb
+++ b/app/services/issuable/clone/attributes_rewriter.rb
@@ -17,6 +17,8 @@ module Issuable
private
def cloneable_milestone
+ return unless new_entity.supports_milestone?
+
title = original_entity.milestone&.title
return unless title