"Select a Graph Hierarchy"

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Flux
Posts: 39
Joined: Fri Nov 01, 2002 12:37 pm

"Select a Graph Hierarchy"

Post by Flux »

Here's a simple request, I think. When a user selects a graph hierarchy, then selects a graph to view the daily, weekly, monthly, and yearly graphs, can we have the "Select a Graph Hierarchy" box up on top display the current graph hierarchy that we're viewing, instead of defaulting back to the first graph hierarchy in the list?

Flux :o
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Just for you :)

In graph_view.php change line 182:
$array_tree["item_action"]["Graph"] = '<a href=\"graph.php?graphid=" . mysql_result($sql_id, $i, "graphid") .
to:
$array_tree["item_action"]["Graph"] = '<a href=\"graph.php?tree_id=" . $array_tree["options"]["tree_id"] . "&graphid=" . mysql_result($sql_id, $i, "graphid") .
I hope it'll work for you.

- bulek
Flux
Posts: 39
Joined: Fri Nov 01, 2002 12:37 pm

Post by Flux »

Thanks!!!! It worked like a charm.

Flux :o
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests