summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-22 13:49:24 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-23 09:40:53 +0100
commitd967b122a9dc32ac6fda2f89327463656650020b (patch)
tree4e4e9a825bc7535e99d8c933cfda7b400a42f206
parent672c8fd097f7a37d7209d8dc3f71ecf8e76f8c3f (diff)
downloadgitlab-ce-d967b122a9dc32ac6fda2f89327463656650020b.tar.gz
Moving of issuables only when the record already exists
-rw-r--r--app/views/shared/issuable/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index b01a36265f9..1ad2c09e13c 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -85,7 +85,7 @@
- if can? current_user, :admin_label, issuable.project
= link_to 'Create new label', new_namespace_project_label_path(issuable.project.namespace, issuable.project), target: :blank
-- if issuable.can_move?(current_user)
+- if issuable.can_move?(current_user) && issuable.persisted?
%hr
.form-group
= label_tag :move_to_project_id, 'Move', class: 'control-label'