diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-21 00:29:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-21 00:29:08 +0100 |
commit | 8fbb9539e8ada7faf6c54c40bda7d059bdfd0c12 (patch) | |
tree | c16ed9eed6ec9f1272253dbfb098979a47c49216 /perllib | |
parent | c804762c2fa0b855fca4c2388c6a47f09913b966 (diff) |
Fix bug whereby 'old and of unknown status' was shown on all open reports.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index 7920a15d6..37c5f478b 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -783,7 +783,7 @@ sub generate_problem_banner { my ( $self, $problem ) = @_; my $banner = {}; - if ($problem->state eq 'confirmed' && $problem->get_column('time') > 8*7*24*60*60) { + if ($problem->state eq 'confirmed' && $problem->get_column('duration') > 8*7*24*60*60) { $banner->{id} = 'unknown'; $banner->{text} = _('This problem is old and of unknown status.'); } |