From f0f8efeb3465d5a6915a680bc96a4cdc9384bd4b Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Sun, 5 Jun 2016 12:24:36 -0600 Subject: [PATCH] Fix error on non-issue pages with comment areas. --- app/views/projects/_md_preview.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml index 59a952dd662..28a28282fd3 100644 --- a/app/views/projects/_md_preview.html.haml +++ b/app/views/projects/_md_preview.html.haml @@ -8,7 +8,7 @@ %a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 } Preview - - if @issue.confidential? + - if defined?(@issue) && @issue.confidential? %li.confidential-issue-warning = icon('warning') %span This is a confidential issue. Your comment will not be visible to the public.