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:
parent
ec7f10d119
commit
54657e5dc7
@ -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
3
public/js/main.js
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user