aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm4
-rw-r--r--templates/web/default/report/updates.html2
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 %]