diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 003de943d..7b630d36f 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -797,29 +797,7 @@ 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'); - } - push @extra, { - name => $field, - description => uc( $field), - value => $value || '', - }; - } - - if ( $c->request->param('fms_extra_title') ) { - $c->stash->{fms_extra_title} = $c->request->param('fms_extra_title'); - $c->stash->{extra_name_info} = 1; - } - } + $c->cobrand->process_extras( $c, \@contacts, \@extra ); if ( @extra ) { $c->stash->{report_meta} = \@extra; |