Source
516
516
' AND '.dbConditionInt('hg.groupid', $group_ids)
517
517
);
518
518
519
519
while ($db_host = DBfetch($db_hosts)) {
520
520
$hosts_ids[] = $db_host['hostid'];
521
521
}
522
522
}
523
523
524
524
DBstart();
525
525
526
-
$result = copyTriggersToHosts(getRequest('g_triggerid'), $hosts_ids, getRequest('hostid'));
526
+
$result = copyTriggersToHosts($hosts_ids, getRequest('hostid'), getRequest('g_triggerid'));
527
527
$result = DBend($result);
528
528
529
529
$triggers_count = count(getRequest('g_triggerid'));
530
530
531
531
if ($result) {
532
532
uncheckTableRows(getRequest('checkbox_hash'));
533
533
unset($_REQUEST['g_triggerid']);
534
534
}
535
535
536
536
show_messages($result,