aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2008-11-17 18:38:31 +0000
committermatthew <matthew>2008-11-17 18:38:31 +0000
commitbc3912e314f111a5e0d39046784b43724960789f (patch)
treee9ad0992f7ff1af0f1b8af7ee9916009cc87c93f
parent2bf97de78398bf8fc293282406365833cc763151 (diff)
Ignore county in admin too for EHA.
-rwxr-xr-xweb-admin/index.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi
index c6349de40..9d3318cb7 100755
--- a/web-admin/index.cgi
+++ b/web-admin/index.cgi
@@ -7,10 +7,10 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: index.cgi,v 1.63 2008-11-17 17:52:16 matthew Exp $
+# $Id: index.cgi,v 1.64 2008-11-17 18:38:31 matthew Exp $
#
-my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.63 2008-11-17 17:52:16 matthew Exp $';
+my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.64 2008-11-17 18:38:31 matthew Exp $';
use strict;
@@ -153,7 +153,9 @@ sub admin_councils_list ($) {
# Table of councils
print $q->h2("Councils");
my @councils;
- my @types = grep { !/LGD/ } @$mySociety::VotingArea::council_parent_types; # LGD are NI councils
+ my $ignore = 'LGD';
+ $ignore .= '|CTY' if $q->{site} eq 'emptyhomes';
+ my @types = grep { !/$ignore/ } @$mySociety::VotingArea::council_parent_types; # LGD are NI councils
foreach my $type (@types) {
my $areas = mySociety::MaPit::get_areas_by_type($type);
push @councils, @$areas;