summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-02-21 07:16:13 +0100
committerlpsolit%gmail.com <>2007-02-21 07:16:13 +0100
commite0318906110e5c22a7ff822fb9df082672c89832 (patch)
tree8dc4a7013d892011716ff8973108d9f5f7a63596 /Bugzilla
parenteffbef93e2989f9d9609dbd89afd67c5c04965df (diff)
downloadbugzilla-e0318906110e5c22a7ff822fb9df082672c89832.tar.gz
bugzilla-e0318906110e5c22a7ff822fb9df082672c89832.tar.xz
Bug 370926: Incorrect mail sent when unsetting requestee on review request - Patch by Frédéric Buclin <LpSolit@gmail.com> r=myk a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index a831fc950..1e4799314 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -748,6 +748,7 @@ sub modify {
# Now update the flag object with its new values.
$flag->{'setter'} = $setter;
$flag->{'requestee'} = undef;
+ $flag->{'requestee_id'} = undef;
$flag->{'status'} = $status;
# Send an email notifying the relevant parties about the fulfillment,
@@ -764,11 +765,13 @@ sub modify {
if ($requestee_email) {
$requestee_id = login_to_id($requestee_email);
$flag->{'requestee'} = new Bugzilla::User($requestee_id);
+ $flag->{'requestee_id'} = $requestee_id;
}
else {
# If the status didn't change but we only removed the
# requestee, we have to clear the requestee field.
$flag->{'requestee'} = undef;
+ $flag->{'requestee_id'} = undef;
}
# Update the database with the changes.