summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 0aca49c87..29215876a 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -280,7 +280,10 @@ sub validate {
&& trim($cgi->param("requestee-$id")))
{
my $requestee_email = trim($cgi->param("requestee-$id"));
- if ($requestee_email ne $flag->{'requestee'}->{'email'}) {
+ my $old_requestee =
+ $flag->{'requestee'} ? $flag->{'requestee'}->login : '';
+
+ if ($old_requestee ne $requestee_email) {
# We know the requestee exists because we ran
# Bugzilla::User::match_field before getting here.
my $requestee = Bugzilla::User->new_from_login($requestee_email);
@@ -551,7 +554,7 @@ sub modify {
my $flag = get($id);
my $status = $cgi->param("flag-$id");
- my $requestee_email = trim($cgi->param("requestee-$id"));
+ my $requestee_email = trim($cgi->param("requestee-$id") || '');
# Ignore flags the user didn't change. There are two components here: