aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/UKCouncils.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-02-02 16:19:17 +0000
committerStruan Donald <struan@exo.org.uk>2012-02-02 16:19:17 +0000
commitbd1be5d99f2c51f9fe2eb7751392b4b44fd74edc (patch)
treea69562c695cd88b5ca0838824e3eaeb336e3043e /perllib/FixMyStreet/Cobrand/UKCouncils.pm
parent9a9889db881e24c17f51804ba56c11bd264bbf9c (diff)
make sure admin summary page handle new cobrand structure correctly
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/UKCouncils.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/UKCouncils.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm
index 9aaa8eca0..589abd178 100644
--- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm
+++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm
@@ -12,6 +12,10 @@ sub site_restriction {
return ( "and council='" . $self->council_id . "'", $self->council_url, { council => sprintf('%d', $self->council_id) } );
}
+sub restriction {
+ return { cobrand => shift->moniker };
+}
+
sub problems_clause {
my $self = shift;
return { council => sprintf('%d', $self->council_id) };