diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-13 15:25:35 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-13 15:25:35 +0100 |
commit | 7063feab9bc9fa3ac6ee4214ecd4d977fe42c5cd (patch) | |
tree | 142cf7b33f6e85172a95a176bdf378e37c25ed02 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | a572ea147f3431f9cce5458723fb3ecd6a8de579 (diff) |
update cobrand filtering and add unit test for summary page
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 0c428e7a7..dfad08f0c 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -48,7 +48,7 @@ sub index : Path : Args(0) { $c->forward('check_page_allowed'); my ( $sql_restriction, $id, $site_restriction ) = $c->cobrand->site_restriction(); - my $cobrand_restriction = $c->cobrand->moniker eq 'fixmystreet' ? {} : { cobrand => $c->cobrand->moniker }; + my $cobrand_restriction = $c->cobrand->moniker ? { cobrand => $c->cobrand->moniker } : {}; my $problems = $c->cobrand->problems->summary_count; @@ -116,7 +116,7 @@ sub timeline : Path( 'timeline' ) : Args(0) { $c->forward('check_page_allowed'); my ( $sql_restriction, $id, $site_restriction ) = $c->cobrand->site_restriction(); - my $cobrand_restriction = { cobrand => $c->cobrand->moniker }; + my $cobrand_restriction = $c->cobrand->moniker ? { cobrand => $c->cobrand->moniker } : {}; my %time; $c->model('DB')->schema->storage->sql_maker->quote_char( '"' ); |