use Bugzilla::WebService::Constants;
use Bugzilla::Bug;
use Bugzilla::BugMail;
+use Bugzilla::Util qw(trim);
#############
# Constants #
ValidateBugID($params->{id});
my $comment = $params->{comment};
- defined $comment
+ (defined $comment && trim($comment) ne '')
|| ThrowCodeError('param_required', { param => 'comment' });
my $bug = new Bugzilla::Bug($params->{id});
comment to.
=item C<comment> (string) B<Required> - The comment to append to the bug.
+If this is empty or all whitespace, an error will be thrown saying that
+you did not set the C<comment> parameter.
=item C<private> (boolean) - If set to true, the comment is private, otherwise
it is assumed to be public.