aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-08-18 18:14:06 +0100
committerStruan Donald <struan@exo.org.uk>2011-08-18 18:14:06 +0100
commit8c1ffdca6e94c0affc67def47d10db339cf28e5c (patch)
tree8ed044a29f60d6e721a493edfc0aad53545baea4 /perllib/FixMyStreet/App/Controller/My.pm
parent9d893420aa44d8b42eb59325cd3a328b16bf8250 (diff)
do not use raw problem state to categorise problems
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index 677f23ceb..87b78eef4 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -45,7 +45,8 @@ sub my : Path : Args(0) {
id => $problem->id,
title => $problem->title,
};
- push @{ $problems->{$problem->state} }, $problem;
+ my $state = $problem->is_fixed ? 'fixed' : 'confirmed';
+ push @{ $problems->{$state} }, $problem;
}
$c->stash->{problems_pager} = $rs->pager;
$c->stash->{problems} = $problems;