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 /templates | |
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 'templates')
-rw-r--r-- | templates/web/base/admin/category-multiselect.html | 2 |
1 files changed, 1 insertions, 1 deletions
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> |