aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-21 12:12:47 +0100
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-21 12:12:47 +0100
commitab497234cb30e38475a9487861d129210b08879a (patch)
tree427c24f770ad802e6821d2eb777e5bc09c7ee53f /web
parentee8c58980a82e7c3a62ee6ad158a48ad30ac4b34 (diff)
parent9cd6b4bdf67f14a6a076f53f3cd4db804026cc41 (diff)
Merge commit 'petter/multi_area_categories' into develop
Diffstat (limited to 'web')
-rwxr-xr-xweb/index.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 9f6f2006a..c2482e26b 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -579,11 +579,13 @@ please specify the closest point on land.')) unless %$all_councils;
$category = _('Category:');
} else {
@$categories = sort { strcoll($a->{category}, $b->{category}) } @$categories;
+ my %seen;
foreach (@$categories) {
$council_ok{$_->{area_id}} = 1;
next if $_->{category} eq _('Other');
next if $q->{site} eq 'southampton' && $_->{category} eq 'Street lighting';
- push @categories, $_->{category};
+ push @categories, $_->{category} unless $seen{$_->{category}};
+ $seen{$_->{category}} = 1;
}
if ($q->{site} eq 'scambs') {
@categories = Page::scambs_categories();