diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index d2f504a4bb..9642a1609c 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -17341,7 +17341,7 @@ function remove_agent_from_policy($id_policy, $use_agent_name, $params) $agent = db_get_row_filter('tmetaconsole_agent', ['id_tagente' => $id_agent, 'id_tmetaconsole_setup' => $id_node]); } - $policy = policies_get_policy($id_policy, false, false); + $policy = policies_get_policy($id_policy); $policy_agent = (is_metaconsole()) ? db_get_row_filter('tpolicy_agents', ['id_policy' => $id_policy, 'id_agent' => $id_agent, 'id_node' => $id_node]) : db_get_row_filter('tpolicy_agents', ['id_policy' => $id_policy, 'id_agent' => $id_agent]);