aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-06-19 16:07:52 +0100
committerStruan Donald <struan@exo.org.uk>2012-06-19 16:07:52 +0100
commita5ffb43593ab33086ca54764930c1788c4b281d3 (patch)
treed9b43f9aead97301979edb2d82dc3df3e852bf65 /perllib/FixMyStreet/App/Controller/Report/New.pm
parentfb2f6875a53ed8c3041efc8130116ed14d625fc5 (diff)
display category prompts on southampton cobrand
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 35173816a..782200587 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -641,10 +641,6 @@ sub setup_categories_and_councils : Private {
$area_ids_to_list{ $contact->area_id } = 1;
- next # TODO - move this to the cobrand
- if $c->cobrand->moniker eq 'southampton'
- && $contact->category =~ /Street lighting|Traffic lights/;
-
next if $contact->category eq _('Other');
unless ( $seen{$contact->category} ) {
@@ -776,6 +772,7 @@ sub process_report : Private {
(
'title', 'detail', 'pc', #
'detail_size', 'detail_depth',
+ 'detail_offensive',
'may_show_name', #
'category', #
'partial', #
@@ -796,7 +793,7 @@ sub process_report : Private {
$report->title( Utils::cleanup_text( $params{title} ) );
my $detail = Utils::cleanup_text( $params{detail}, { allow_multiline => 1 } );
- for my $w ('depth', 'size') {
+ for my $w ('depth', 'size', 'offensive') {
next unless $params{"detail_$w"};
next if $params{"detail_$w"} eq '-- Please select --';
$detail .= "\n\n\u$w: " . $params{"detail_$w"};