]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 370926: Incorrect mail sent when unsetting requestee on review request - Patch...
authorlpsolit%gmail.com <>
Wed, 21 Feb 2007 06:16:13 +0000 (06:16 +0000)
committerlpsolit%gmail.com <>
Wed, 21 Feb 2007 06:16:13 +0000 (06:16 +0000)
Bugzilla/Flag.pm

index a831fc9503853c47dec02577ddcbb147185ec787..1e47993148212a41aa5ee224fa102ad2abb7d3cd 100644 (file)
@@ -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.