diff options
author | Tiago Mello <timello@gmail.com> | 2010-12-21 13:30:45 +0100 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2010-12-21 13:30:45 +0100 |
commit | 87a3fdafdc843eb8976c36c3638b1770a1f42eb2 (patch) | |
tree | b2be6448ff4be7f5ac3fc2940fd782498d8669b4 | |
parent | ed3e015a1c21061ed9f30cfc3fe3c3e83c0d2fb1 (diff) | |
download | bugzilla-87a3fdafdc843eb8976c36c3638b1770a1f42eb2.tar.gz bugzilla-87a3fdafdc843eb8976c36c3638b1770a1f42eb2.tar.xz |
Bug 593539: Fix the bugs activity for the see_also field.
r/a=mkanat
-rw-r--r-- | Bugzilla/Bug.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index fd0111578..f3a28658a 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 ' |