diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-03-14 10:26:25 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-03-14 10:26:25 +0000 |
commit | a3cbfda1d64e416a21f7aaa9f32705b050bf5911 (patch) | |
tree | 455d5ee5e595414145d9f27a8931eabca1d09c1a /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 2361c341a2d946470ce445c4ffd2efc57c348c4f (diff) | |
parent | 1511fd51adef54ec93759ef256ca9f3ce3646adb (diff) |
Merge branch 'issues/commercial/987-zurich-csv-updates'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index c73f7efca..2deeb3084 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -341,7 +341,7 @@ around service => sub { sub title_safe { my $self = shift; - return _('Awaiting moderation') if $self->cobrand eq 'zurich' && $self->state eq 'unconfirmed'; + return _('Awaiting moderation') if $self->cobrand eq 'zurich' && $self->state eq 'submitted'; return $self->title; } @@ -509,6 +509,18 @@ sub tokenised_url { return "/M/". $token->token; } +=head2 is_hidden + +Returns 1 if the problem is in an hidden state otherwise 0. + +=cut + +sub is_hidden { + my $self = shift; + + return exists $self->hidden_states->{ $self->state } ? 1 : 0; +} + =head2 is_open Returns 1 if the problem is in a open state otherwise 0. |