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 = [
|
$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
3
public/js/main.js
vendored
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user