From: lpsolit%gmail.com <> Date: Wed, 21 Feb 2007 06:16:13 +0000 (+0000) Subject: Bug 370926: Incorrect mail sent when unsetting requestee on review request - Patch... X-Git-Tag: bugzilla-3.0rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0318906110e5c22a7ff822fb9df082672c89832;p=thirdparty%2Fbugzilla.git Bug 370926: Incorrect mail sent when unsetting requestee on review request - Patch by Frédéric Buclin r=myk a=LpSolit --- diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index a831fc9503..1e47993148 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.