aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-17 20:45:33 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-28 17:19:27 +0100
commitf763cb953402bb71254e5f5db44293e64704d528 (patch)
tree4fe2acb3ee6be4972ae48cc20a49329ba3ddb1dc /perllib/FixMyStreet/App/Controller/Admin.pm
parent474bc7c3b0c87c7eebc2171f3bd1bd18370da4cd (diff)
Fix uses of != instead of not_in.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index d0d84ff70..5f18f8557 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -831,7 +831,7 @@ sub template_edit : Path('templates') : Args(2) {
$template->update_or_insert;
$template->contact_response_templates->search({
- contact_id => { '!=' => \@new_contact_ids },
+ contact_id => { -not_in => \@new_contact_ids },
})->delete;
foreach my $contact_id (@new_contact_ids) {
$template->contact_response_templates->find_or_create({