diff --git a/host_templates.php b/host_templates.php index b35ea9825b..4ccb8f7925 100644 --- a/host_templates.php +++ b/host_templates.php @@ -850,7 +850,7 @@ function clearFilter() { } if (get_request_var('graph_template') != '-1') { - $sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(gt_id = ' . get_request_var('graph_template') . ')'; + $sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(gt_id = ' . get_filter_request_var('graph_template') . ')'; $sql_join = "INNER JOIN ( SELECT DISTINCT host_template_id, id AS gt_id FROM (