From b82662a6173e7f20ed19f80b4fae3c405bcff4ea Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 13 Feb 2018 17:26:18 +0000 Subject: =?UTF-8?q?Show=20any=20=E2=80=98steady-state=E2=80=99=20questionn?= =?UTF-8?q?aire=20response.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perllib/FixMyStreet/App/Controller/Report.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller/Report.pm') 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' } ); -- cgit v1.2.3