diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-11 17:55:35 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-25 14:07:13 +0100 |
commit | d317d22e88266acba0eb7eff41a0d8528239c8e0 (patch) | |
tree | ce89b4e37c15805eb90039d9a9051b5dfa0e7307 /perllib/FixMyStreet/App/Controller | |
parent | 1016181d70363325e989c0ec8598341ec1f34ec6 (diff) |
[BANES] Override category display name.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Bodies.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm index 8556e8a27..165fdc783 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm @@ -290,7 +290,7 @@ sub update_contact : Private { $c->forward('/admin/update_extra_fields', [ $contact ]); - $c->forward('contact_cobrand_extra_fields', [ $contact ]); + $c->forward('contact_cobrand_extra_fields', [ $contact, \%errors ]); # Special form disabling form if ($c->get_param('disable')) { @@ -434,12 +434,13 @@ sub check_body_params : Private { } sub contact_cobrand_extra_fields : Private { - my ( $self, $c, $contact ) = @_; + my ( $self, $c, $contact, $errors ) = @_; my $extra_fields = $c->cobrand->call_hook('contact_extra_fields'); foreach ( @$extra_fields ) { $contact->set_extra_metadata( $_ => $c->get_param("extra[$_]") ); } + $c->cobrand->call_hook(contact_extra_fields_validation => $contact, $errors); } sub fetch_translations : Private { |