aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-15 09:29:07 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-15 15:19:22 +0100
commit5101c6fc13e4199ec8cb07fd0d405a6dcea68a60 (patch)
treef853ff09e8f1cbcb739e9be1ed441bc700459928 /perllib/FixMyStreet/App/Controller/Admin.pm
parentd522ef800a7c11547857597be092ae2b59f77f29 (diff)
Add fn to fetch bodies plus the translated names.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 0b1720982..aab114576 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -1941,7 +1941,7 @@ sub check_page_allowed : Private {
sub fetch_all_bodies : Private {
my ($self, $c ) = @_;
- my @bodies = $c->model('DB::Body')->all;
+ my @bodies = $c->model('DB::Body')->all_translated;
if ( $c->cobrand->moniker eq 'zurich' ) {
@bodies = $c->cobrand->admin_fetch_all_bodies( @bodies );
} else {