Moving of issuables only when the record already exists

This commit is contained in:
Zeger-Jan van de Weg 2016-03-22 13:49:24 +01:00 committed by Grzegorz Bizon
parent 672c8fd097
commit d967b122a9
1 changed files with 1 additions and 1 deletions

View File

@ -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'