aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-02 18:02:27 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-08 15:32:12 +0100
commit3833f1feb9d4760bb0e2d8ba83c06c8455516d88 (patch)
treeb925586185f0d8fb6e00fee14f6c2cfe8a3eda9d /perllib/FixMyStreet/App/Controller
parent505953fc71a6142826e1e5743a0a3dc18e306748 (diff)
Add help text metadata facility to categories.
This is shown when reporting and in map list filters.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm2
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm2
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 184d61f4f..25f97fd8f 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -233,7 +233,7 @@ sub check_and_stash_category : Private {
body_id => [ keys %bodies ],
},
{
- columns => [ 'category' ],
+ columns => [ 'category', 'extra' ],
order_by => [ 'category' ],
distinct => 1
}
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index f6ba9a6ee..883ccc0ce 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -159,7 +159,7 @@ sub setup_page_data : Private {
my @categories = $c->stash->{problems_rs}->search({
state => [ FixMyStreet::DB::Result::Problem->visible_states() ],
}, {
- columns => [ 'category' ],
+ columns => [ 'category', 'extra' ],
distinct => 1,
order_by => [ 'category' ],
} )->all;
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 3b9ceaebc..f4da58d20 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -156,7 +156,7 @@ sub ward : Path : Args(2) {
$c->stash->{stats} = $c->cobrand->get_report_stats();
my @categories = $c->stash->{body}->contacts->not_deleted->search( undef, {
- columns => [ 'category' ],
+ columns => [ 'category', 'extra' ],
distinct => 1,
order_by => [ 'category' ],
} )->all;