Changeset 938

Show
Ignore:
Timestamp:
12/18/06 20:20:48 (2 years ago)
Author:
bchoate
Message:

Sort top-blog dropdown list with a case-insensitive alphabetic sort. Also, fixed the propagation of the uploaded asset id. BugId: 32209

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r937 r938  
    15241524                if $blog_id && ($blog->id == $blog_id); 
    15251525        } 
    1526         @data = sort { $a->{top_blog_name} cmp $b->{top_blog_name} } @data; 
     1526        @data = sort { lc($a->{top_blog_name}) cmp lc($b->{top_blog_name}) } @data; 
    15271527        $param->{top_blog_loop} = \@data; 
    15281528    } 
     
    90679067    my $html = $asset->insert_options($param); 
    90689068    unless ($html) { 
     9069        $app->param('id', $asset->id); 
    90699070        return $app->asset_insert(); 
    90709071    }