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/Hook.pm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Bugzilla/Hook.pm') diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index 556fda894..b8d763d20 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -239,13 +239,22 @@ Params: =over -=item C - The changed bug object, with all fields set to their updated -values. +=item C -=item C - The timestamp used for all updates in this transaction. +The changed bug object, with all fields set to their updated values. -=item C - The hash of changed fields. -C<$changes-E{field} = [old, new]> +=item C + +A bug object pulled from the database before the fields were set to +their updated values (so it has the old values available for each field). + +=item C + +The timestamp used for all updates in this transaction. + +=item C + +The hash of changed fields. C<< $changes->{field} = [old, new] >> =back -- cgit v1.2.3-24-g4f1b