[Jifty-commit] r7668 - jifty/trunk/lib/Jifty/Web

Jifty commits jifty-commit at lists.jifty.org
Mon Nov 23 11:03:22 EST 2009


Author: jesse
Date: Mon Nov 23 11:03:21 2009
New Revision: 7668

Modified:
   jifty/trunk/lib/Jifty/Web/Menu.pm

Log:
Stabilize menu item sort order broken by previous patch

Modified: jifty/trunk/lib/Jifty/Web/Menu.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Menu.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Menu.pm	Mon Nov 23 11:03:21 2009
@@ -184,8 +184,7 @@
 
         $child->sort_order( sort_order =>
                 ( $args{sort_order} || 
-                  $self->{children}{$key}{sort_order} || 
-                  scalar values %{ $self->{children} } ) );
+                  scalar values %{ $self->{children} } ) ) unless ($child->sort_order());
 
         # URL is relative to parents, and cached, so set it up now
         $child->url( $child->{url} );


More information about the Jifty-commit mailing list