From 302cb50b076e2d4bbf3b9077e5b2fbacef96149a Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Wed, 28 Jul 2004 04:41:45 +0000 Subject: [PATCH] small bug fix in the 'Graph Templates' box (thanks to ricardo@memosis.pt) git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1856 860744bd-22fc-0310-8c96-e9fe5004b5ca --- graphs_new.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/graphs_new.php b/graphs_new.php index 409271c4f2..05604f8489 100644 --- a/graphs_new.php +++ b/graphs_new.php @@ -430,7 +430,13 @@ function graphs() { and host_graph.host_id=" . $_REQUEST["host_id"] . " order by graph_templates.name"); - $template_graphs = db_fetch_assoc("select graph_local.graph_template_id from graph_local,host_graph where graph_local.graph_template_id=host_graph.graph_template_id and graph_local.host_id=" . $host["id"] . " group by graph_local.graph_template_id"); + $template_graphs = db_fetch_assoc("select + graph_local.graph_template_id + from graph_local,host_graph + where graph_local.graph_template_id=host_graph.graph_template_id + and graph_local.host_id=host_graph.host_id + and graph_local.host_id=" . $host["id"] . " + group by graph_local.graph_template_id"); print "\n";