Commit 9f5a8a28 authored by Albert Ting's avatar Albert Ting Committed by Dylan Hardison

Bug 1202853 - Markdown doesn't work when adding a comment attachment

r=dylan,a=dylan
parent 8f405c09
......@@ -548,9 +548,12 @@ sub insert {
# Insert a comment about the new attachment into the database.
my $comment = $cgi->param('comment');
$comment = '' unless defined $comment;
my $is_markdown = ($user->use_markdown
&& $cgi->param('use_markdown')) ? 1 : 0;
$bug->add_comment($comment, { isprivate => $attachment->isprivate,
type => CMT_ATTACHMENT_CREATED,
extra_data => $attachment->id });
extra_data => $attachment->id,
is_markdown => $is_markdown});
# Assign the bug to the user, if they are allowed to take it
my $owner = "";
......
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