aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/TfL.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-05-07 14:20:19 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-05-07 14:20:19 +0100
commitcfabb3cfd4474c1c812ed325a068d56bafc43a08 (patch)
treeec610c101b45e4e2fcd7ad51673a24bd1ae126cd /perllib/FixMyStreet/Cobrand/TfL.pm
parentf6d807fd5217a19ac488f652d1f0853a7891231f (diff)
parenta2cc36b0d94143d1150a73993541eb829bd9b9fa (diff)
Merge branch 'category-group-in-csv'
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/TfL.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm12
1 files changed, 0 insertions, 12 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index b98ad1d8b..78b7c271a 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -245,16 +245,6 @@ sub dashboard_export_problems_add_columns {
my $self = shift;
my $c = $self->{c};
- my %groups;
- if ($c->stash->{body}) {
- %groups = FixMyStreet::DB->resultset('Contact')->search({
- body_id => $c->stash->{body}->id,
- })->group_lookup;
- }
-
- splice @{$c->stash->{csv}->{headers}}, 5, 0, 'Subcategory';
- splice @{$c->stash->{csv}->{columns}}, 5, 0, 'subcategory';
-
$c->stash->{csv}->{headers} = [
map { $_ eq 'Ward' ? 'Borough' : $_ } @{ $c->stash->{csv}->{headers} },
"Agent responsible",
@@ -315,8 +305,6 @@ sub dashboard_export_problems_add_columns {
my $fields = {
acknowledged => $report->whensent,
agent_responsible => $agent ? $agent->name : '',
- category => $groups{$report->category},
- subcategory => $report->category,
user_name_display => $user_name_display,
safety_critical => $safety_critical,
delivered_to => join(',', @$delivered_to),