summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 315ff3a99..dbc102d3e 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -76,6 +76,10 @@ my $format = GetFormat("bug/create/comment", $::FORM{'format'}, "txt");
$template->process($format->{'template'}, $vars, \$comment)
|| ThrowTemplateError($template->error());
+# Check that if required a description has been provided
+if (Param("commentoncreate") && !trim($::FORM{'comment'})) {
+ ThrowUserError("description_required");
+}
ValidateComment($comment);
my $product = $::FORM{'product'};