Bug: Trees do not collapse correctly

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
rjackson

Bug: Trees do not collapse correctly

Post by rjackson »

When collapsing trees in the tree view, one subtree heading will disappear while the others will stay visable under the collapsed subtree. I'm not exactly sure whether all of them should disappear or if all of them should stay visable, but the current behavior doesn't seem correct.
zimxx
Posts: 10
Joined: Tue Jun 17, 2003 5:26 pm

Post by zimxx »

i'm running 8.0, and i have a similar phenomena, i spoke with rax and he checked, he says it looks like it's been fixed in 8.1. try upgrading to the newer version and see how it pans out for you.
-so it goes
rjackson

Post by rjackson »

I am running 0.8.1
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I created a test tree and cannot seem to reproduce this bug. Visit the following URL and let me know what you think:

http://web.raxnet.net/cacti/cacti-0.8.2 ... ction=tree

-Ian
tmc3inphilly
Posts: 11
Joined: Fri Apr 11, 2003 2:00 pm
Location: Philly

Post by tmc3inphilly »

Ian:

In order to properly reproduce the error, please add two more sub-trees under the TEST tree. The problem that I am having is that the first sub-tree will collapse but if there are more than one sub-trees in the tree, they will remain visible. Thank you.

Tom
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I think the problem is fixed now. It only occured when two or more nested branches had the 'hide' flag set. To fix, change 'include/tree_view_functions.php:169' to:

Code: Select all

if (($leaf["status"] == "1") && ($hide_until_tier == false)) {
Thanks for helping me fix this.

-Ian
tmc3inphilly
Posts: 11
Joined: Fri Apr 11, 2003 2:00 pm
Location: Philly

Post by tmc3inphilly »

Ian:

That worked perfectly! Thanks again for your tireless effort!

Tom
rjackson

Post by rjackson »

Thanks, that did indeed fix the problem. And, thanks to tmc for more accurately explaining the problem for me.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests