aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-07 15:55:02 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-07 15:55:02 +0100
commit42d7669ab494f2b8bf7f2209a7ce06fd8a373bc5 (patch)
treeddc6a6b8ad65cd3b92a549f6bad62df33d276e82
parent8dfccdf811c575bd80a1b6ff4b03fec2fe66827b (diff)
Add Southampton exception to catalyst code
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 071b36df0..903a8b97e 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -675,9 +675,16 @@ sub setup_categories_and_councils : Private {
@contacts = keysort { $_->category } @contacts;
foreach my $contact (@contacts) {
+
push @area_ids_to_list, $contact->area_id;
- push @category_options, $contact->category
- unless $contact->category eq _('Other');
+
+ next # TODO - move this to the cobrand
+ if $c->cobrand->moniker eq 'southampton'
+ && $contact->category eq 'Street lighting';
+
+ next if $contact->category eq _('Other');
+
+ push @category_options, $contact->category;
}
if (@category_options) {