Skip to content

Commit

Permalink
[Central Beds] Include other fly-tipping types in CSV.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos authored and davea committed Jan 8, 2025
1 parent cdd00e2 commit beaf17f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perllib/FixMyStreet/Cobrand/CentralBedfordshire.pm
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,18 @@ sub dashboard_export_problems_add_columns {

$csv->add_csv_columns(
external_id => 'CRNo',
housing_flytipping_types => 'Housing fly-tipping types',
flytipping_types => 'Fly-tipping types',
);

$csv->csv_extra_data(sub {
my $report = shift;

my $types = $csv->_extra_field($report, 'Type') || [];
my $types = $csv->_extra_field($report, 'Type') || $csv->_extra_field($report, 'type_of_waste') || [];
$types = [$types] unless ref $types;
$types = join(';', sort @$types);

my $data = {
housing_flytipping_types => $types,
flytipping_types => $types,
};

unless ($csv->dbi) {
Expand Down

0 comments on commit beaf17f

Please sign in to comment.