diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-13 17:26:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-16 19:12:32 +0000 |
commit | b82662a6173e7f20ed19f80b4fae3c405bcff4ea (patch) | |
tree | 1e389f557599dd2e257ab254b237c6d12f26a9b3 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | ac70eec9d5b76b8b11b5b1f47add60013ea7144c (diff) |
Show any ‘steady-state’ questionnaire response.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 5 |
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' } ); |