[Jifty-commit] jifty branch, master, updated. jifty-1.01209-22-g2ffcf33
Jifty commits
jifty-commit at lists.jifty.org
Tue Feb 1 16:04:33 EST 2011
The branch, master has been updated
via 2ffcf333bfbadd2ad0b2d7f89886e3416f176f87 (commit)
from de03c4d51f50a02f342ec8d7857b0612f336519e (commit)
Summary of changes:
lib/Jifty/Web/Menu.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 2ffcf333bfbadd2ad0b2d7f89886e3416f176f87
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Feb 1 16:04:29 2011 -0500
Test the count of children, not just the truth
diff --git a/lib/Jifty/Web/Menu.pm b/lib/Jifty/Web/Menu.pm
index fc2f728..ac66318 100644
--- a/lib/Jifty/Web/Menu.pm
+++ b/lib/Jifty/Web/Menu.pm
@@ -368,7 +368,8 @@ sub render_submenu {
# This is really icky. XXX TODO
$web->out( $_->as_link );
- if ($args{'deep_active'} and $_->active and $_->children) {
+ my @kids = $_->children;
+ if ($args{'deep_active'} and $_->active and @kids) {
$_->render_submenu( %args, id => $web->serial );
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list