diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-06-21 14:04:24 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-06-21 14:08:16 +0100 |
commit | b3b1beeefb113da5c196a5f0ed62756f4777b162 (patch) | |
tree | 1c6f1f2775f110c6c3f3039598761f91e3a1acd6 /perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |
parent | 8bc12f19e115085083b68ed3bc73f80413048d15 (diff) |
Call process_extras() from updates too, so that error checking runs.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index c2ba60786..d32e876bb 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -54,13 +54,13 @@ sub generate_problem_banner { } sub process_extras { - my $self = shift; - my $ctx = shift; - my $contacts = shift; - my $extra = shift; - my $fields = shift || []; + my $self = shift; + my $ctx = shift; + my $area_id = shift; + my $extra = shift; + my $fields = shift || []; - if ( $contacts->[0]->area_id == 2482 ) { + if ( $area_id == 2482 ) { my @fields = ( 'fms_extra_title', @$fields ); for my $field ( @fields ) { my $value = $ctx->request->param( $field ); |