aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 7b98f01f8..803bfad58 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -240,12 +240,8 @@ sub check_and_stash_category : Private {
$c->stash->{bodies_ids} = [ map { $_->id } @bodies];
$c->{stash}->{list_of_names_as_string} = $csv->string;
- my $where = { body_id => [ keys %bodies ], };
-
- my $cobrand_where = $c->cobrand->call_hook('munge_around_category_where', $where );
- if ( $cobrand_where ) {
- $where = $cobrand_where;
- }
+ my $where = { body_id => [ keys %bodies ], };
+ $c->cobrand->call_hook('munge_around_category_where', $where);
my @categories = $c->model('DB::Contact')->not_deleted->search(
$where,