diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 04:50:34 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 04:50:34 -0700 |
commit | 07f947c99e162dc991f368cd5ff9065824c4ec86 (patch) | |
tree | d00294be29107380d60f0565438d84f7769c6d5b /Bugzilla/Bug.pm | |
parent | 2a444f9d50535445a84367a9833bd87a07752d0a (diff) | |
download | bugs-07f947c99e162dc991f368cd5ff9065824c4ec86.tar bugs-07f947c99e162dc991f368cd5ff9065824c4ec86.tar.gz bugs-07f947c99e162dc991f368cd5ff9065824c4ec86.tar.bz2 bugs-07f947c99e162dc991f368cd5ff9065824c4ec86.tar.xz bugs-07f947c99e162dc991f368cd5ff9065824c4ec86.zip |
Bug 556736: Make the bug_end_of_update hook also send $old_bug to the hook
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 7 |
1 files changed, 3 insertions, 4 deletions
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}) { |