diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-16 22:05:52 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-10 11:30:41 +0100 |
commit | cc3e99fa9878bfb722e61d4a09d94839b152c5b7 (patch) | |
tree | aa273efab59cb60c6c0edc37de9b7665aa49b27d /perllib/FixMyStreet/App/Controller/My.pm | |
parent | fe4153e367bcbb74eebed9c8ac0126d94709506c (diff) |
Set up translatable category columns.
As category is used both for display and as a link between Problem and
Contact tables, add `category_display` for use whenever a category is
displayed.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 6fee25ec5..ea7aee016 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -162,7 +162,7 @@ sub setup_page_data : Private { distinct => 1, order_by => [ 'category' ], } )->all; - @categories = map { $_->category } @categories; + @categories = map { { name => $_->category, value => $_->category_display } } @categories; $c->stash->{filter_categories} = \@categories; $c->stash->{page} = 'my'; |