Commits
399
399
}
400
400
elseif ($error) {
401
401
$items = API::Item()->get([
402
402
'output' => ['key_'],
403
403
'itemids' => [$gitem['itemid']],
404
404
'webitems' => true
405
405
]);
406
406
407
407
$hosts = API::Host()->get([
408
408
'output' => ['host'],
409
-
'hostids' => [$destinationHostId]
409
+
'hostids' => [$destinationHostId],
410
+
'templated_hosts' => true
410
411
]);
411
412
412
413
error(_s('Missing key "%1$s" for host "%2$s".', $items[0]['key_'], $hosts[0]['host']));
413
414
414
415
return false;
415
416
}
416
417
else {
417
418
continue;
418
419
}
419
420