aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi
index a3ac1296c..4ac20ad90 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -513,7 +513,7 @@ sub display_form {
my $all_councils = mySociety::MaPit::call('point', "27700/$easting,$northing", type => $parent_types);
# Let cobrand do a check
- my ($success, $error_msg) = Cobrand::council_check($cobrand, $all_councils, $q, 'submit_problem');
+ my ($success, $error_msg) = Cobrand::council_check($cobrand, { all_councils => $all_councils }, $q, 'submit_problem');
if (!$success){
return front_page($q, $error_msg);
}
@@ -808,9 +808,7 @@ sub display_location {
}
# Check this location is okay to be displayed for the cobrand
- my $parent_types = $mySociety::VotingArea::council_parent_types;
- my $all_councils = mySociety::MaPit::call('point', "27700/$easting,$northing", type => $parent_types);
- my ($success, $error_msg) = Cobrand::council_check($cobrand, $all_councils, $q, 'display_location');
+ my ($success, $error_msg) = Cobrand::council_check($cobrand, { e => $easting, n => $northing }, $all_councils, $q, 'display_location');
return front_page($q, $error_msg) unless $success;
# Deal with pin hiding/age