mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-9440-derivado-del-trabajo-q-a-765-api-pfms-set-planned_downtimes_additem-hace-mal-conteo-de' into 'develop'
Ent 9440 derivado del trabajo q a 765 api pfms set planned downtimes additem hace mal conteo de See merge request artica/pandorafms!5373
This commit is contained in:
commit
37b35ee509
@ -7509,7 +7509,7 @@ function api_set_planned_downtimes_additem($id, $thrash1, $other, $thrash3)
|
|||||||
$bad_agents = [];
|
$bad_agents = [];
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($total_agents as $agent_id) {
|
foreach ($total_agents as $agent_id) {
|
||||||
$result_agent = agents_check_access_agent($agent_id, 'AD');
|
$result_agent = agents_check_access_agent($agent_id, 'AR');
|
||||||
if (!$result_agent) {
|
if (!$result_agent) {
|
||||||
$bad_agents[] = $agent_id;
|
$bad_agents[] = $agent_id;
|
||||||
unset($agents[$i]);
|
unset($agents[$i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user