diff options
author | Chris Mytton <chrism@mysociety.org> | 2020-05-04 18:24:10 +0100 |
---|---|---|
committer | Chris Mytton <chrism@mysociety.org> | 2020-05-05 16:55:44 +0100 |
commit | 819abc9849bae380f64ae2adc3657c27b34a6654 (patch) | |
tree | b733edac5d329f532e624d8dd362a9b331981d00 /bin | |
parent | 90a306d35a8289b4b53a28c445cecdc93d42299a (diff) |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fixmystreet.com/fixture | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |