diff options
author | Dylan William Hardison <dylan@mozilla.com> | 2014-11-11 05:17:42 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-11-11 05:17:42 +0100 |
commit | 5b9d96e69d6c854a1838b7973a3b615ae1af9a7f (patch) | |
tree | 5ef9b0cfb2d8d88600777c90bc8b20c447e32c27 /extensions | |
parent | 2d223dcbe7bf5c045a11ea489a0964129518731e (diff) | |
download | bugzilla-5b9d96e69d6c854a1838b7973a3b615ae1af9a7f.tar.gz bugzilla-5b9d96e69d6c854a1838b7973a3b615ae1af9a7f.tar.xz |
Bug 1096318: Restricting a bug's visibility does not delete any associated MozReview review requests
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Push/lib/Connector/ReviewBoard/Client.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/Push/lib/Connector/ReviewBoard/Client.pm b/extensions/Push/lib/Connector/ReviewBoard/Client.pm index 7ec4938d2..4848d820f 100644 --- a/extensions/Push/lib/Connector/ReviewBoard/Client.pm +++ b/extensions/Push/lib/Connector/ReviewBoard/Client.pm @@ -18,6 +18,17 @@ use URI; use Bugzilla::Extension::Push::Connector::ReviewBoard::ReviewRequest; +BEGIN { + unless (LWP::UserAgent->can('delete')) { + *LWP::UserAgent::delete = sub { + my ($self, @parameters) = @_; + require HTTP::Request::Common; + my @suff = $self->_process_colonic_headers(\@parameters, 1); + return $self->request(HTTP::Request::Common::DELETE(@parameters), @suff); + }; + } +}; + sub new { my ($class, %params) = @_; |