MT#59238 fix rewrite rules transaction control for PATCH,DELETE

* /api/rewriterules PATCH, DELETE methods used the generic
  transaction, which conflicted with the xmlrpc reload command.
* own_transaction_control was only set for PUT and now also
  extended to PATCH, DELETE to ensure that dialplan_sip_reload()
  is called properly after $guard->commit.

Change-Id: I7313b4f6d1f6699bf38ae34749c5383a3943f61d
mr12.3
Kirill Solomko 2 years ago
parent c837dc1043
commit 80f8b1da0b

@ -7,7 +7,7 @@ use NGCP::Panel::Utils::Generic qw(:all);
use HTTP::Status qw(:constants);
__PACKAGE__->set_config({
own_transaction_control => { PUT => 1 },
own_transaction_control => { PUT => 1, PATCH => 1, DELETE => 1 },
});
sub allowed_methods{

Loading…
Cancel
Save