diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-02 17:08:05 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-02 17:08:05 +0100 |
commit | cfa337b7d1165d81a1eb1907f8555df1a55633c1 (patch) | |
tree | a0603f3d5ff9dae30175469340d724733e379dfd /perllib/FixMyStreet/App/Controller/Report | |
parent | 9e47231b6b669f51c69bff3a16351cd97916e91a (diff) |
tests for title, first and last name for bromley issues
some fixes for handling this on main site
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report')
-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'); } |