default => 'this may indicate a bug in your browser.'
},
+ {
+ name => 'commentoncreate',
+ desc => 'If this option is on, the user needs to enter a description ' .
+ 'when entering a new bug',
+ type => 'b',
+ default => 0
+ },
+
{
name => 'commentonaccept',
desc => 'If this option is on, the user needs to enter a short comment if ' .
$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'};
[% title = "Dependency Loop Detected" %]
You can't make [% terms.abug %] blocked or dependent on itself.
+ [% ELSIF error == "description_required" %]
+ [% title = "Description Required" %]
+ You must provide a description of the [% terms.bug %].
+
[% ELSIF error == "dupe_invalid_bug_id" %]
[% title = BLOCK %]Valid [% terms.Bug %] Number Required[% END %]
You must specify a valid [% terms.bug %] number of which this