1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

Fix deactivating licenses

This commit is contained in:
FreeScout 2020-12-05 09:59:45 -08:00
parent ec7f10d119
commit 54657e5dc7
2 changed files with 3 additions and 2 deletions

View File

@ -388,7 +388,7 @@ class ModulesController extends Controller
$params = [
'license' => $license,
'module_alias' => $alias,
'url' => \App\Module::getAppUrl(),
'url' => (!empty($request->any_url) ? '*' : \App\Module::getAppUrl()),
];
$result = WpApi::deactivateLicense($params);

3
public/js/main.js vendored
View File

@ -470,7 +470,8 @@ function deactivateLicenseModal(modal)
{
action: 'deactivate_license',
alias: $('.deactivate-license-module:visible:first').val(),
license: $('.deactivate-license-key:visible:first').val()
license: $('.deactivate-license-key:visible:first').val(),
any_url: 1,
},
laroute.route('modules.ajax'),
function(response) {