Availability report is not working propoerly due to a bug in report2.php.
Line 242 should be updated as there is no groupid field in the filter. The name of the field is hostgroupid. So, $_REQUEST['groupid'] should be updated to $_REQUEST['hostgroupid']. Be aware to update the sql sentence in line 244, too.
here is the code:
if($_REQUEST['hostgroupid'] > 0){
$sql_from .= ',hosts_groups hg ';
$sql_where.= ' AND hg.hostid=h.hostid AND hg.groupid='.$_REQUEST['hostgroupid'];
}
I know, I'm playing w/ semantics..
Line 242 should be updated as there is no groupid field in the filter. The name of the field is hostgroupid. So, $_REQUEST['groupid'] should be updated to $_REQUEST['hostgroupid']. Be aware to update the sql sentence in line 244, too.
here is the code:
if($_REQUEST['hostgroupid'] > 0){
$sql_from .= ',hosts_groups hg ';
$sql_where.= ' AND hg.hostid=h.hostid AND hg.groupid='.$_REQUEST['hostgroupid'];
}
I know, I'm playing w/ semantics..

Comment