diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-08-19 15:55:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-08-19 15:55:41 +0100 |
commit | 8dfdbf84b57d8bbc179dcb895d6eb08c61fdef59 (patch) | |
tree | 4c463f153d69290e4850cbb71c016066e5ed5879 /perllib/Open311/GetUpdates.pm | |
parent | 0784bdae637e3d0ca20dc3d66ec50c5d68e489ec (diff) | |
parent | b812f8526525c0f38d72bdc469ddc08b376854d2 (diff) |
Merge branch 'bodies_str-factoring'
Diffstat (limited to 'perllib/Open311/GetUpdates.pm')
-rw-r--r-- | perllib/Open311/GetUpdates.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/Open311/GetUpdates.pm b/perllib/Open311/GetUpdates.pm index 5007a1f82..bc55086f0 100644 --- a/perllib/Open311/GetUpdates.pm +++ b/perllib/Open311/GetUpdates.pm @@ -17,9 +17,8 @@ sub get_updates { api_key => $body->api_key ); - my $reports = FixMyStreet::App->model('DB::Problem')->search( + my $reports = FixMyStreet::App->model('DB::Problem')->to_body($body)->search( { - bodies_str => { like => "\%" . $body->id . "\%" }, state => { 'IN', [qw/confirmed fixed/] }, -and => [ external_id => { '!=', undef }, |