aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-18 15:20:55 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-18 15:20:55 +0000
commit5967990259b29e0b0d725548a8b79c7446980bb2 (patch)
treeb1ff6582352f9a32f4af39ab3c0d194d392dc32f /perllib/FixMyStreet/App/Controller/Admin.pm
parent48df7552110a3f6df40705ae8f94704f39f3b88b (diff)
Make body list a table to match other admin tables.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 7479bdba5..de69880c1 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -1325,7 +1325,11 @@ sub fetch_all_bodies : Private {
my ($self, $c ) = @_;
my @bodies = $c->model('DB::Body')->all;
- @bodies = sort { strcoll($a->name, $b->name) } @bodies;
+ if ( $c->cobrand->moniker eq 'zurich' ) {
+ @bodies = $c->cobrand->admin_fetch_all_bodies( @bodies );
+ } else {
+ @bodies = sort { strcoll($a->name, $b->name) } @bodies;
+ }
$c->stash->{bodies} = \@bodies;
return 1;