diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/DefectTypes.pm | 2 | ||||
-rw-r--r-- | templates/web/base/admin/category-multiselect.html | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/templates/web/base/admin/category-multiselect.html b/templates/web/base/admin/category-multiselect.html index 4e4eceeed..98416204f 100644 --- a/templates/web/base/admin/category-multiselect.html +++ b/templates/web/base/admin/category-multiselect.html @@ -4,7 +4,7 @@ <p> <select class="form-control js-multiple" name="categories" id="categories" multiple data-all="[% loc('All categories') %]"> [% FOR contact IN contacts %] - <option value="[% contact.id %]" [% 'selected' IF contact.active %]>[% contact.category_display | html %]</option> + <option value="[% contact.id %]" [% 'selected' IF contact.active %]>[% contact.category | html %]</option> [% END %] </select> </p> |