diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 13:50:34 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-02 13:50:34 +0200 |
commit | 07f947c99e162dc991f368cd5ff9065824c4ec86 (patch) | |
tree | d00294be29107380d60f0565438d84f7769c6d5b /extensions | |
parent | 2a444f9d50535445a84367a9833bd87a07752d0a (diff) | |
download | bugzilla-07f947c99e162dc991f368cd5ff9065824c4ec86.tar.gz bugzilla-07f947c99e162dc991f368cd5ff9065824c4ec86.tar.xz |
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 'extensions')
-rw-r--r-- | extensions/Example/Extension.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 52ac66231..835d36f80 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -119,13 +119,16 @@ sub bug_end_of_update { # This code doesn't actually *do* anything, it's just here to show you # how to use this hook. - my ($bug, $timestamp, $changes) = @$args{qw(bug timestamp changes)}; + my ($bug, $old_bug, $timestamp, $changes) = + @$args{qw(bug old_bug timestamp changes)}; foreach my $field (keys %$changes) { my $used_to_be = $changes->{$field}->[0]; my $now_it_is = $changes->{$field}->[1]; } - + + my $old_summary = $old_bug->short_desc; + my $status_message; if (my $status_change = $changes->{'bug_status'}) { my $old_status = new Bugzilla::Status({ name => $status_change->[0] }); |