aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-11-29 13:24:46 +0000
committerDave Arter <davea@mysociety.org>2017-11-29 13:24:46 +0000
commit487198a6cd46e9824045676773990b73baac2d89 (patch)
tree20a4daa9ff9039340b671ea72d24586973c9826e
parent5d485f64d864b236fdfaba1c3cbf452a7331b18d (diff)
[East Herts] Preserve 'Other' category in PopulateServiceList
-rw-r--r--perllib/Open311/PopulateServiceList.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm
index 764207626..dbd0d1c68 100644
--- a/perllib/Open311/PopulateServiceList.pm
+++ b/perllib/Open311/PopulateServiceList.pm
@@ -292,6 +292,14 @@ sub _delete_contacts_not_in_service_list {
email => { -not_like => '%@%' }
}
);
+ } elsif ($self->_current_body->name eq 'East Hertfordshire District Council') {
+ # For EHDC we need to leave the 'Other' category alone or reports made
+ # in this category will be sent only to Hertfordshire County Council.
+ $found_contacts = $found_contacts->search(
+ {
+ category => { '!=' => 'Other' }
+ }
+ );
}
$found_contacts->update(