diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-03-09 15:50:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-03-09 15:50:49 +0000 |
commit | de1a7efcf4b33e60829e7c5a946bc82632247a28 (patch) | |
tree | 554e06fa5eda9031ccc0824acaa7e3169e658308 /perllib/FixMyStreet/Cobrand/EmptyHomes.pm | |
parent | f23470ddccfdf1db6604c99c58a3803fd5ccab4c (diff) | |
parent | a5636fc2acd3e03b853f3644fedc054e3eb8b905 (diff) |
Merge remote-tracking branch 'origin/1291-extra_fields'
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/EmptyHomes.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/EmptyHomes.pm | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/perllib/FixMyStreet/Cobrand/EmptyHomes.pm b/perllib/FixMyStreet/Cobrand/EmptyHomes.pm index 0b02f90c4..995c39c85 100644 --- a/perllib/FixMyStreet/Cobrand/EmptyHomes.pm +++ b/perllib/FixMyStreet/Cobrand/EmptyHomes.pm @@ -132,16 +132,8 @@ sub council_rss_alert_options { return ( \@options, @reported_to_options ? \@reported_to_options : undef ); } -sub process_extras { - my $self = shift; - my $ctx = shift; - my $body_id = shift; - my $extra = shift; - - my $value = $ctx->get_param('address') || ''; - $ctx->stash->{field_errors}->{address} = _('This information is required') - unless $value; - $extra->{address} = $value; +sub report_form_extras { + ( { name => 'address', required => 1 } ) } sub front_stats_data { |