diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-19 15:58:42 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-19 15:58:42 +0000 |
commit | b79674b0145fc2c4cb57ed77ceec39246d02621c (patch) | |
tree | 8427323960381e28038b354657f76b633aa82cb5 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 20fa5ef4c92dc7cab092412149fdb27b9faab145 (diff) |
Allow unconfirmed as a visible state in Zurich, adjust front end list/item templates to suit.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 32bdcbb4f..6cfe45bc0 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -252,21 +252,22 @@ HASHREF. =cut +my $visible_states = { + 'confirmed' => 1, + 'planned' => 1, + 'investigating' => 1, + 'in progress' => 1, + 'fixed' => 1, + 'fixed - council' => 1, + 'fixed - user' => 1, + 'closed' => 1, +}; sub visible_states { - my $states = { - 'confirmed' => 1, - 'planned' => 1, - 'investigating' => 1, - 'in progress' => 1, - 'fixed' => 1, - 'fixed - council' => 1, - 'fixed - user' => 1, - 'closed' => 1, - }; - - return wantarray ? keys %{$states} : $states; + return wantarray ? keys %{$visible_states} : $visible_states; +} +sub visible_states_add_unconfirmed { + $visible_states->{unconfirmed} = 1; } - my $tz = DateTime::TimeZone->new( name => "local" ); |