diff options
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 6865a61f5..dc8fb7672 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -15,6 +15,10 @@ sub update_comments { for my $request (@$requests) { my $request_id = $request->{service_request_id}; + # If there's no request id then we can't work out + # what problem it belongs to so just skip + next unless $request_id; + my $problem = FixMyStreet::App->model('DB::Problem') ->search( { |