diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-15 18:24:52 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-15 18:24:52 +0100 |
commit | 3b328617e89a689e0f7b1cc957a7d282308af736 (patch) | |
tree | 8a96317838042c3deedaf064583ea56a36bed5c1 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 7ef671b3177a69177f1412d1ece46b3e3d92f425 (diff) |
send questionnaires for all open states
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index daedf5577..47dac1e8e 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -305,6 +305,22 @@ sub is_open { return exists $open_states{ $self->state } ? 1 : 0; } +=head2 + + @states = FixMyStreet::DB::Problem::visible_states(); + +Returns a list of states that should be displayed on the site. + +=cut + +sub visible_states { + return ( + 'confirmed', 'planned', 'investigating', + 'in progress', 'fixed', 'fixed - council', + 'fixed - user', 'will not fix', + ); +} + =head2 meta_line Returns a string to be used on a problem report page, describing some of the |