$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'};
ThrowUserError("require_summary");
}
+# Check that if required a description has been provided
+# This has to go somewhere after 'maketemplate'
+# or it breaks bookmarks with no comments.
+if (Param("commentoncreate") && !trim($::FORM{'comment'})) {
+ ThrowUserError("description_required");
+}
+
# If bug_file_loc is "http://", the default, strip it out and use an empty
# value.
$::FORM{'bug_file_loc'} = "" if $::FORM{'bug_file_loc'} eq 'http://';