aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-16 16:46:04 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-16 16:46:04 +0100
commitc35ef08e4f6f51874d1ce46dce3b4895dca6fe54 (patch)
tree0f645f0747be9acaa7254e8640e904199ef82742 /perllib/FixMyStreet/App/Controller/Around.pm
parent08bda4c3a6ef4e55bce01a3fa004021679b141f5 (diff)
stop using hard coded names for fixed/visible states ( work in progress )
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 0c26220e0..b380eedfc 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -189,7 +189,7 @@ sub display_location : Private {
{
latitude => $p->latitude,
longitude => $p->longitude,
- colour => $p->state eq 'fixed' ? 'green' : 'red',
+ colour => $p->is_fixed ? 'green' : 'red',
id => $p->id,
title => $p->title,
}