diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-12-04 17:26:42 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2015-01-08 12:28:56 +0000 |
commit | 72cee9781f996a6866ccd5b3bc67e8d682be9ea7 (patch) | |
tree | 0f8b94cfd68a81a541deb7979d8c32770b10c91b /perllib/FixMyStreet/DB/ResultSet | |
parent | 395bf81b39cec7f706132837d39c75242070a088 (diff) |
[Harrogate] custom form fields
Requires previous (generic) commit to prevent information only
categories (e.g. Dead animals message) from displaying a spurious
textbox.
Also support for sending these custom fields by email:
Requires a hook in RS::Problem method, as by default, only a restricted
number of hard-coded fields are send in the email.
(And the template language is pseudo-PHP so we can't simply pass in the
whole data-structure.)
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 5d70bf47d..d3c016be6 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -323,6 +323,10 @@ sub send_reports { $h{user_details} .= sprintf(_('Email: %s'), $row->user->email) . "\n\n"; } + if ($cobrand->can('process_additional_metadata_for_email')) { + $cobrand->process_additional_metadata_for_email($row, \%h); + } + my %reporters = (); my ( $sender_count ); if ($site eq 'emptyhomes') { |