aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Reports.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-21 17:54:16 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-21 17:54:16 +0100
commitddde474e6a1dfb1591e8cfe06dc05c8be3312853 (patch)
tree3b97c383534be926c4733aebf4b4228eb19c9013 /perllib/FixMyStreet/App/Controller/Reports.pm
parent2f3388de9ee449080febabd47876620c82d56895 (diff)
check for open states instead of confirmed
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 2f895015b..fc8c4cd0e 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -357,7 +357,8 @@ sub add_row {
push @{$fixed->{$council}{$duration_str}}, $problem if
exists FixMyStreet::DB::Result::Problem->fixed_states()->{$problem->{state}};
# Open problems are either unknown, older, or new
- push @{$open->{$council}{$type}}, $problem if $problem->{state} eq 'confirmed';
+ push @{$open->{$council}{$type}}, $problem if
+ exists FixMyStreet::DB::Result::Problem->open_states->{$problem->{state}};
}
=head1 AUTHOR