Bug 87006 - Fix marking bugs as duplicate

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1508 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2012-01-27 16:23:14 +00:00
parent efc7c435ce
commit f037ee8a9e
1 changed files with 3 additions and 3 deletions

View File

@ -2311,9 +2311,9 @@ sub set_dup_id {
# Now make sure that we add a duplicate comment on *this* bug.
# (Change an existing comment into a dup comment, if there is one,
# or add an empty dup comment.)
if ($self->{added_comments} && @{$self->{added_comments}}) {
my @normal = grep { !defined $_->{type} || $_->{type} == CMT_NORMAL }
@{ $self->{added_comments} };
my @normal = grep { !defined $_->{type} || $_->{type} == CMT_NORMAL }
@{ $self->{added_comments} || [] };
if (@normal) {
# Turn the last one into a dup comment.
$normal[-1]->{type} = CMT_DUPE_OF;
$normal[-1]->{extra_data} = $self->dup_id;