diff --git a/ChangeLog b/ChangeLog index 1a4f14f64a..c099ba79cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,7 @@ explanation + rfe #1441 Add regexp match when using AllowArbitraryServer 4.3.13.0 (not yet released) +- bug #4803 "Show hidden items" is sometimes hidden 4.3.12.0 (2015-03-14) - bug #4746 Right-aligned columns have left-aligned header diff --git a/libraries/navigation/NavigationTree.class.php b/libraries/navigation/NavigationTree.class.php index 219d96a19f..4c774dedee 100644 --- a/libraries/navigation/NavigationTree.class.php +++ b/libraries/navigation/NavigationTree.class.php @@ -741,6 +741,13 @@ class PMA_NavigationTree $keySeparatorLength ) ); + + if ($new_child instanceof Node_Database + && $child->getHiddenCount() > 0 + ) { + $new_child->setHiddenCount($child->getHiddenCount()); + } + $new_child->real_name = $child->real_name; $new_child->icon = $child->icon; $new_child->links = $child->links; diff --git a/libraries/navigation/Nodes/Node_Database.class.php b/libraries/navigation/Nodes/Node_Database.class.php index 608427d8de..bcc593267c 100644 --- a/libraries/navigation/Nodes/Node_Database.class.php +++ b/libraries/navigation/Nodes/Node_Database.class.php @@ -648,6 +648,16 @@ class Node_Database extends Node { $this->_hiddenCount = $count; } + + /** + * Returns the number of hidden items in this database + * + * @return int hidden item count + */ + public function getHiddenCount() + { + return $this->_hiddenCount; + } } ?>