From 07f947c99e162dc991f368cd5ff9065824c4ec86 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Fri, 2 Apr 2010 04:50:34 -0700 Subject: Bug 556736: Make the bug_end_of_update hook also send $old_bug to the hook r=mkanat, a=mkanat (module owner) --- Bugzilla/Bug.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index da5cf9285..0d6a4be17 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -865,10 +865,9 @@ sub update { $changes->{'dup_id'} = [$old_dup || undef, $cur_dup || undef]; } - Bugzilla::Hook::process('bug_end_of_update', { bug => $self, - timestamp => $delta_ts, - changes => $changes, - }); + Bugzilla::Hook::process('bug_end_of_update', + { bug => $self, timestamp => $delta_ts, changes => $changes, + old_bug => $old_bug }); # If any change occurred, refresh the timestamp of the bug. if (scalar(keys %$changes) || $self->{added_comments}) { -- cgit v1.2.3-24-g4f1b