summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorKoosha KM <koosha.khajeh@gmail.com>2014-08-28 19:17:54 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-08-28 19:17:54 +0200
commitec5caa57cc14a328b8b994d49cb8def8eb95aea7 (patch)
tree08eec320a2361b41fcd400259770d6357a913e15 /process_bug.cgi
parent82346032ecfef148e78a8d19e17c5ed41ed41d10 (diff)
downloadbugzilla-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.gz
bugzilla-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.xz
Bug 330707: Add optional support for MarkDown
r=dkl,a=sgreen
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 6 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 37beee14a..6ae5c54d6 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -233,9 +233,13 @@ if (should_set('keywords')) {
$set_all_fields{keywords}->{$action} = $cgi->param('keywords');
}
if (should_set('comment')) {
+ my $is_markdown = ($user->settings->{use_markdown}->{is_enabled} &&
+ $cgi->param('use_markdown') eq '1') ? 1 : 0;
+
$set_all_fields{comment} = {
- body => scalar $cgi->param('comment'),
- is_private => scalar $cgi->param('comment_is_private'),
+ body => scalar $cgi->param('comment'),
+ is_private => scalar $cgi->param('comment_is_private'),
+ is_markdown => $is_markdown,
};
}
if (should_set('see_also')) {