diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-16 16:46:04 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-16 16:46:04 +0100 |
commit | c35ef08e4f6f51874d1ce46dce3b4895dca6fe54 (patch) | |
tree | 0f645f0747be9acaa7254e8640e904199ef82742 /perllib/FixMyStreet/App/Controller | |
parent | 08bda4c3a6ef4e55bce01a3fa004021679b141f5 (diff) |
stop using hard coded names for fixed/visible states ( work in progress )
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 2 |
2 files changed, 2 insertions, 2 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, } diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index e1983c855..3f7bd268f 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -256,7 +256,7 @@ sub load_and_group_problems : Private { my ( $self, $c ) = @_; my $where = { - state => [ 'confirmed', 'fixed' ] + state => [ FixMyStreet::DB::Result::Problem->visible_states() ] }; my @extra_cols = (); if ($c->stash->{ward}) { |