summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
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')) {