Clear loaded comments after saving bug

master
Vitaliy Filippov 2014-05-23 15:59:44 +04:00
parent a8ae6d04e7
commit b226af09ac
1 changed files with 2 additions and 0 deletions

View File

@ -1225,8 +1225,10 @@ sub save_added_comments
{
my ($self, $changes) = @_;
delete $self->{comments} if @{$self->{added_comments} || []};
foreach my $comment (@{$self->{added_comments} || []})
{
# FIXME Don't talk to CGI from here
if (Bugzilla->cgi->param('commentsilent'))
{
# Log silent comments