1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +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 = [ $params = [
'license' => $license, 'license' => $license,
'module_alias' => $alias, 'module_alias' => $alias,
'url' => \App\Module::getAppUrl(), 'url' => (!empty($request->any_url) ? '*' : \App\Module::getAppUrl()),
]; ];
$result = WpApi::deactivateLicense($params); $result = WpApi::deactivateLicense($params);

3
public/js/main.js vendored
View File

@ -470,7 +470,8 @@ function deactivateLicenseModal(modal)
{ {
action: 'deactivate_license', action: 'deactivate_license',
alias: $('.deactivate-license-module:visible:first').val(), 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'), laroute.route('modules.ajax'),
function(response) { function(response) {