summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/Extension.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Needinfo/Extension.pm')
-rw-r--r--extensions/Needinfo/Extension.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index eb4b92c85..255e08098 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -112,9 +112,13 @@ sub bug_start_of_update {
# Find out if the requestee has already been used and skip if so
my $requestee_found;
foreach my $flag (@{ $type->{flags} }) {
- next if $flag->requestee->login ne $needinfo_flag->{requestee};
- $requestee_found = 1;
- last;
+ if ((!$flag->requestee && !exists $needinfo_flag->{requestee})
+ || ($flag->requestee && exists $needinfo_flag->{requestee}
+ && $flag->requestee->login eq $needinfo_flag->{requestee}))
+ {
+ $requestee_found = 1;
+ last;
+ }
}
next if $requestee_found;