Merge branch 'ent-7786-agentes-asignados-a-politicas-en-metaconsola' into 'develop'

Ent 7786 agentes asignados a politicas en metaconsola

See merge request artica/pandorafms!4280
This commit is contained in:
Daniel Rodriguez 2021-08-31 13:47:00 +00:00
commit a853c8a0c6
1 changed files with 1 additions and 1 deletions

View File

@ -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]);