Commit d967b122 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by Grzegorz Bizon

Moving of issuables only when the record already exists

parent 672c8fd0
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
- if can? current_user, :admin_label, issuable.project - 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 = 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 %hr
.form-group .form-group
= label_tag :move_to_project_id, 'Move', class: 'control-label' = label_tag :move_to_project_id, 'Move', class: 'control-label'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment