diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-21 00:33:41 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-21 00:33:41 +0000 |
commit | f7c46612fd1ae32e738acfc084abb674d1c1487a (patch) | |
tree | 04641936f2261595855b62073040e074129382c4 | |
parent | bd9738d1e9cae14125d2e926bc7bfb87be186805 (diff) |
Use correct method names.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 4 | ||||
-rw-r--r-- | templates/web/default/report/updates.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index bb7c8dea0..afe180c29 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -99,10 +99,10 @@ sub load_updates : Private { my @combined; while (my $update = $updates->next) { - push @combined, [ $update->{confirmed}, $update ]; + push @combined, [ $update->confirmed, $update ]; } while (my $update = $questionnaires->next) { - push @combined, [ $update->{whenanswered}, $update ]; + push @combined, [ $update->whenanswered, $update ]; } @combined = map { $_->[1] } sort { $a->[0] <=> $b->[0] } @combined; $c->stash->{updates} = \@combined; diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html index d49cb8f58..374a7c570 100644 --- a/templates/web/default/report/updates.html +++ b/templates/web/default/report/updates.html @@ -6,7 +6,7 @@ [% IF update.whenanswered %] [%# A questionnaire update, currently saying report is still open %] - [% tprintf( loc( 'Reporter confirmed report open, via questionnaire at %s' ), prettify_epoch( update.whenanswered_local.epoch ) ) %] + [% tprintf( loc( 'Still open, via questionnaire, %s' ), prettify_epoch( update.whenanswered_local.epoch ) ) %] [% RETURN %] [% END %] |