mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'fix/api-disable-standby-agent' into 'develop'
standby software agent while disabling See merge request artica/pandorafms!1986
This commit is contained in:
commit
f8e128120e
@ -10015,6 +10015,11 @@ function api_set_enable_disable_agent ($id, $thrash2, $other, $thrash3) {
|
||||
|
||||
$disabled = ( $other['data'][0] ? 0 : 1 );
|
||||
|
||||
enterprise_hook(
|
||||
'config_agents_update_config_token',
|
||||
array($id, 'standby', $disabled ? "1" : "0")
|
||||
);
|
||||
|
||||
$result = db_process_sql_update('tagente',
|
||||
array('disabled' => $disabled), array('id_agente' => $id));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user