summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-24 14:29:09 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-24 14:29:09 -0500
commit7f43049012cb9fed1208a7ede13e4279c4d89c82 (patch)
tree4f2465d0c2320e46206284713063f6c4688c8a0b
parent5a460c3796b8083748747e004ee678045df0aca4 (diff)
downloadgitlab-ce-issue_14610.tar.gz
Fix cancel link on issuable edit formissue_14610
-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..6606904c77a 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -135,4 +135,4 @@
method: :delete, class: 'btn btn-grouped' do
= icon('trash-o')
Delete
- = link_to 'Cancel', namespace_project_issue_path(@project.namespace, @project, issuable), class: 'btn btn-grouped btn-cancel'
+ = link_to 'Cancel', polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), class: 'btn btn-grouped btn-cancel'