mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
minor fix force discovery console task
Former-commit-id: be2a85079f51fca0222ac25f2f93ad5a14f3542d
This commit is contained in:
parent
e5190a91ee
commit
c6fa365b90
@ -240,7 +240,7 @@ class DiscoveryTaskList extends Wizard
|
|||||||
$id_console_task = (int) get_parameter('id_console_task');
|
$id_console_task = (int) get_parameter('id_console_task');
|
||||||
|
|
||||||
if ($id_console_task !== null) {
|
if ($id_console_task !== null) {
|
||||||
enterprise_hook('cron_task_run', $id_console_task, true);
|
enterprise_hook('cron_task_run', [$id_console_task, true]);
|
||||||
// Trick to avoid double execution.
|
// Trick to avoid double execution.
|
||||||
header('Location: '.$this->url);
|
header('Location: '.$this->url);
|
||||||
}
|
}
|
||||||
@ -511,6 +511,15 @@ class DiscoveryTaskList extends Wizard
|
|||||||
$data[9] .= '</a>';
|
$data[9] .= '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($task['disabled'] != 2) {
|
||||||
|
$data[9] .= '<a href="#" onclick="show_map('.$task['id_rt'].',\''.$task['name'].'\',\''.$url_ajax.'\')">';
|
||||||
|
$data[9] .= html_print_image(
|
||||||
|
'images/dynamic_network_icon.png',
|
||||||
|
true
|
||||||
|
);
|
||||||
|
$data[9] .= '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if (check_acl(
|
if (check_acl(
|
||||||
$config['id_user'],
|
$config['id_user'],
|
||||||
$task['id_group'],
|
$task['id_group'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user