diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index ac462e293..003de943d 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -800,6 +800,11 @@ sub process_report : Private { if ( $contacts[0]->area_id == 2482 ) { for my $field ( qw/ fms_extra_title first_name last_name / ) { my $value = $c->request->param( $field ); + next if ( + $c->cobrand->moniker ne 'bromley' && + ( $field eq 'first_name' || $field eq 'last_name' ) + ); + if ( !$value ) { $c->stash->{field_errors}->{ $field } = _('This information is required'); } |