diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-06-03 15:31:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-06-04 11:22:41 +0100 |
commit | 1c8f7efec8e04919ad43c63ce9bcf148ee72a2cc (patch) | |
tree | f1ae812c0b63e699db310c10e704833e96c26d53 /perllib/Open311/PopulateServiceList.pm | |
parent | f8859e29f5bcf75c1b2acb934bd4353f83c5a2c1 (diff) |
[Open311] Do not remove any devolved contacts.
Diffstat (limited to 'perllib/Open311/PopulateServiceList.pm')
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index 9be17946e..20fca90b3 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -350,10 +350,10 @@ sub _delete_contacts_not_in_service_list { ); if ($self->_current_body->can_be_devolved) { - # If the body has can_be_devolved switched on, it's most likely a - # combination of Open311/email, so ignore any email addresses. + # If the body has can_be_devolved switched on, ignore any + # contact with its own send method $found_contacts = $found_contacts->search( - { email => { -not_like => '%@%' } } + { send_method => [ "", undef ] }, ); } |