diff options
author | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-07-26 13:43:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-07-26 13:43:11 +0100 |
commit | 8c1531397765c96c943a5ee0f8cddd4d091c41d9 (patch) | |
tree | 97cadc7a751f5fa015f37328e003c358abccd5fd | |
parent | 06c11b89cbe9b3ff11e31f4ba2a5d252becc3c56 (diff) |
Need to look up type, it's not just there now.
-rwxr-xr-x | web/index.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 563465c37..f9428efa3 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -312,7 +312,7 @@ sub submit_problem { my %va = map { $_ => 1 } @$mySociety::VotingArea::council_parent_types; my %councils; foreach (keys %$areas) { - $councils{$_} = 1 if $va{$areas->{$_}}; + $councils{$_} = 1 if $va{$areas->{$_}->{type}}; } my @input_councils = split /,|\|/, $input{council}; foreach (@input_councils) { |