[Jifty-commit] r6643 - in jifty/trunk: lib/Jifty/Web

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 17 17:55:26 EDT 2009


Author: alexmv
Date: Tue Mar 17 17:55:18 2009
New Revision: 6643

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web/Menu.pm

Log:
 r43323 at kohr-ah:  chmrr | 2009-03-17 17:47:32 -0400
 Default sort order for warnings avoidance


Modified: jifty/trunk/lib/Jifty/Web/Menu.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Menu.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Menu.pm	Tue Mar 17 17:55:18 2009
@@ -32,9 +32,10 @@
     my $args = ref($_[0]) eq 'HASH' ? shift @_ : {@_};
 
     my $parent = delete $args->{'parent'};
+    $args->{sort_order} ||= 0;
 
     # Class::Accessor only wants a hashref;
-    my $self = $package->SUPER::new( $args);
+    my $self = $package->SUPER::new( $args );
 
     # make sure our reference is weak
     $self->parent($parent) if defined $parent;


More information about the Jifty-commit mailing list