Show
Ignore:
Timestamp:
06/04/08 01:21:49 (18 months ago)
Author:
fumiakiy
Message:

Modernized how sort argument is specified in group_by query. BugId:79977. The legacy way of specifying it is still allowed but discouraged.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/ArchiveType/CategoryYearly.pm

    r2399 r2500  
    120120            { 
    121121                group => ["extract(year from authored_on)"], 
    122                 sort  => "extract(year from authored_on) $order", 
     122                sort  => [ { column => "extract(year from authored_on)", desc => $order } ], 
    123123                'join' => 
    124124                  [ 'MT::Placement', 'entry_id', { category_id => $c->id } ]