diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 17:07:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 17:07:32 +0100 |
commit | 76f4863367d3ee3fd1b309793f5b9f0276229893 (patch) | |
tree | 29dae4db2fb02b53c9b67688a902666cdc26473a | |
parent | ea4b72706950650effcaf98d42cc50362b145dcd (diff) |
Fix warn in sort.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index 43106331b..fadee9684 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -306,11 +306,11 @@ sub sort_problems : Private { my $open = $c->stash->{open}; foreach (qw/new old/) { - $c->stash->{fixed}{$id}{$_} = [ sort { $a->{duration} <=> $b->{duration} } @{$fixed->{$id}{$_}} ] + $c->stash->{fixed}{$id}{$_} = [ sort { $a->get_column('duration') <=> $b->get_column('duration') } @{$fixed->{$id}{$_}} ] if $fixed->{$id}{$_}; } foreach (qw/new older unknown/) { - $c->stash->{open}{$id}{$_} = [ sort { $a->{age} <=> $b->{age} } @{$open->{$id}{$_}} ] + $c->stash->{open}{$id}{$_} = [ sort { $a->get_column('age') <=> $b->get_column('age') } @{$open->{$id}{$_}} ] if $open->{$id}{$_}; } } |