diff options
author | Struan Donald <struan@exo.org.uk> | 2017-08-16 12:07:49 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-08-16 12:11:31 +0100 |
commit | 1359c291a05f63d4e5c99137003ffe846a5e7289 (patch) | |
tree | 5c3b7d68035750c4837c72d06e7e1f6fe035d777 /perllib/FixMyStreet/App/Controller/Admin | |
parent | 25a9d0223668ccefc4b4dd83f5f0f18a37a4353c (diff) |
translate defect category names in the controller
As we're only passing category names through we need to do the
translation in the controller and not the template
Fixes mysociety/fixmystreetforcouncils#218
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm b/perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm index bcfeb3dd8..ef4a0f219 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm @@ -62,7 +62,7 @@ sub edit : Path : Args(2) { my %active_contacts = map { $_->id => 1 } @contacts; my @all_contacts = map { { id => $_->id, - category => $_->category, + category => $_->category_display, active => $active_contacts{$_->id}, } } @live_contacts; $c->stash->{contacts} = \@all_contacts; |