From 819abc9849bae380f64ae2adc3657c27b34a6654 Mon Sep 17 00:00:00 2001 From: Chris Mytton Date: Mon, 4 May 2020 18:24:10 +0100 Subject: Pass class argument to council_area_id in fixture script The TfL council_area_id sub uses the `$_[0]` argument to call other cobrand methods, but that argument wasn't being passed in here. --- bin/fixmystreet.com/fixture | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture index f4a9fbef1..1062eb16b 100755 --- a/bin/fixmystreet.com/fixture +++ b/bin/fixmystreet.com/fixture @@ -302,7 +302,7 @@ if ($opt->coords) { my $cobrand = 'default'; foreach (FixMyStreet::Cobrand->available_cobrand_classes) { my $sub = $_->{class} && $_->{class}->can('council_area_id'); - if ($sub && &$sub == $opt->area_id) { + if ($sub && &$sub($_->{class}) == $opt->area_id) { $cobrand = $_->{class}->moniker; last; } -- cgit v1.2.3