From d967b122a9dc32ac6fda2f89327463656650020b Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Tue, 22 Mar 2016 13:49:24 +0100 Subject: Moving of issuables only when the record already exists --- app/views/shared/issuable/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.1