diff options
author | Byron Jones <glob@mozilla.com> | 2015-04-07 08:16:26 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-04-07 08:16:26 +0200 |
commit | ab323343f8a5491c25951260c5df0788ae43576c (patch) | |
tree | 81a9ef4c2f30ddb44a46efa22dd0a24b29f7a5f0 /extensions/Needinfo | |
parent | 63567a9c3bec7acd722db01929ad7d64d36d02df (diff) | |
download | bugzilla-ab323343f8a5491c25951260c5df0788ae43576c.tar.gz bugzilla-ab323343f8a5491c25951260c5df0788ae43576c.tar.xz |
Bug 1150074: when a person blocks needinfo? requests, it prevents comments on a bug when there is an existing ni? request
Diffstat (limited to 'extensions/Needinfo')
-rw-r--r-- | extensions/Needinfo/Extension.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm index f988defd6..0f3451e44 100644 --- a/extensions/Needinfo/Extension.pm +++ b/extensions/Needinfo/Extension.pm @@ -203,7 +203,8 @@ sub object_end_of_create { sub object_end_of_update { my ($self, $args) = @_; my $object = $args->{object}; - return unless $object->isa('Bugzilla::Flag') + return unless exists $args->{changes}->{requestee_id} + && $object->isa('Bugzilla::Flag') && $object->type->name eq 'needinfo' && $object->requestee; _check_requestee($object->requestee); |