diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-08-10 14:57:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:57:01 +0200 |
commit | fd850e00db835d2b84c59014c3b1021fea2294fc (patch) | |
tree | b5529f9bf45bb2b8f66b19714d215f1ca6c06c94 /attachment.cgi | |
parent | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (diff) | |
download | bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.gz bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.xz |
Bug 1456878 - Support markdown comments
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi index 875de6a50..4aeba58c5 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -600,6 +600,7 @@ sub insert { my $comment = $cgi->param('comment'); $comment = '' unless defined $comment; $bug->add_comment($comment, { isprivate => $attachment->isprivate, + is_markdown => 1, type => CMT_ATTACHMENT_CREATED, extra_data => $attachment->id }); @@ -745,6 +746,7 @@ sub update { my $comment = $cgi->param('comment'); if (defined $comment && trim($comment) ne '') { $bug->add_comment($comment, { isprivate => $attachment->isprivate, + is_markdown => 1, type => CMT_ATTACHMENT_UPDATED, extra_data => $attachment->id }); } |