[Rt-commit] r3618 - in rt/branches/3.5-TESTING: . html/Elements
trs at bestpractical.com
trs at bestpractical.com
Sat Aug 6 19:55:38 EDT 2005
Author: trs
Date: Sat Aug 6 19:55:38 2005
New Revision: 3618
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/Elements/Menu
Log:
r5712 at wintermute: tom | 2005-08-06 19:55:22 -0400
Fixed empty menu bug
Modified: rt/branches/3.5-TESTING/html/Elements/Menu
==============================================================================
--- rt/branches/3.5-TESTING/html/Elements/Menu (original)
+++ rt/branches/3.5-TESTING/html/Elements/Menu Sat Aug 6 19:55:38 2005
@@ -86,7 +86,9 @@
%
<li<% $class->{li} ? qq[ class="$class->{li}"] : ''|n %>><% $count > 1 && !$postsep && qq[<span class="bullet">· </span>]|n%><a href="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}%>"<% $class->{a} && qq[ class="$class->{a}"] |n%><% !$level && " accesskey='".$accesskey++."'" |n%>><% $toptabs->{$tab}->{'title'}%></a>
%# Second-level items
-% if ($toptabs->{$tab}->{'subtabs'}) {
+% if ($toptabs->{$tab}->{'subtabs'}
+% and keys %{$toptabs->{$tab}->{'subtabs'}})
+% {
<& /Elements/Menu, level => $level+1,
current_toptab => $toptabs->{$tab}->{'current_subtab'},
toptabs => $toptabs->{$tab}->{'subtabs'},
More information about the Rt-commit
mailing list