From: Tiago Mello Date: Tue, 21 Dec 2010 12:30:45 +0000 (-0200) Subject: Bug 593539: Fix the bugs activity for the see_also field. X-Git-Tag: bugzilla-4.1.1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87a3fdafdc843eb8976c36c3638b1770a1f42eb2;p=thirdparty%2Fbugzilla.git Bug 593539: Fix the bugs activity for the see_also field. r/a=mkanat --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index fd0111578d..f3a28658a7 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -931,6 +931,7 @@ sub update { } # See Also + my @old_see_also = @{ $old_bug->see_also }; foreach my $field_values (@{ $self->{added_see_also} || [] }) { my $class = delete $field_values->{class}; $class->insert_create_data($field_values); @@ -940,7 +941,7 @@ sub update { delete $self->{added_see_also}; my ($removed_see, $added_see) = - diff_arrays($old_bug->see_also, $self->see_also); + diff_arrays(\@old_see_also, $self->see_also); if (scalar @$removed_see) { $dbh->do('DELETE FROM bug_see_also WHERE bug_id = ? AND '