When you try to add/edit/view items associated with a template, you cannot select the "Host" as one of the templates. The popup window shows "No Hosts Defined". This is because the options passed to CHost::get do not have "templated_hosts" defined. Without this option the default behaviour is to select just Monitored & Non_Monitored Hosts (as defined in class.chost.php line 278)
$sql_parts['where'][] = 'h.status IN ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONIT ORED.')';
In order to fix the problem I just added the missing option in popup.php. Add templated_hosts' => 1 to the options (e.g line 398).
Probably is already fixed in 1.8.2... but in case not...
$sql_parts['where'][] = 'h.status IN ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONIT ORED.')';
In order to fix the problem I just added the missing option in popup.php. Add templated_hosts' => 1 to the options (e.g line 398).
Probably is already fixed in 1.8.2... but in case not...
Comment