aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.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/ResponsePriorities.pm
parent474bc7c3b0c87c7eebc2171f3bd1bd18370da4cd (diff)
Fix uses of != instead of not_in.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm
index 2613f6ae0..5077fe78f 100644
--- a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm
@@ -71,7 +71,7 @@ sub edit : Path : Args(2) {
my @live_contact_ids = map { $_->id } @live_contacts;
my @new_contact_ids = grep { $c->get_param("contacts[$_]") } @live_contact_ids;
$priority->contact_response_priorities->search({
- contact_id => { '!=' => \@new_contact_ids },
+ contact_id => { -not_in => \@new_contact_ids },
})->delete;
foreach my $contact_id (@new_contact_ids) {
$priority->contact_response_priorities->find_or_create({