aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-13 17:26:18 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-16 19:12:32 +0000
commitb82662a6173e7f20ed19f80b4fae3c405bcff4ea (patch)
tree1e389f557599dd2e257ab254b237c6d12f26a9b3 /perllib/FixMyStreet/App/Controller/Report.pm
parentac70eec9d5b76b8b11b5b1f47add60013ea7144c (diff)
Show any ‘steady-state’ questionnaire response.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 2861f368a..8708c6128 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -163,7 +163,10 @@ sub load_updates : Private {
{
problem_id => $c->stash->{problem}->id,
whenanswered => { '!=', undef },
- old_state => 'confirmed', new_state => 'confirmed',
+ old_state => [ -and =>
+ { -in => [ FixMyStreet::DB::Result::Problem::closed_states, FixMyStreet::DB::Result::Problem::open_states ] },
+ \'= new_state',
+ ]
},
{ order_by => 'whenanswered' }
);