diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-12 16:17:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-31 09:48:39 +0100 |
commit | 7ed376410d38c3d86981f005d12ad77e3f1501d1 (patch) | |
tree | 5a1177f46b1eeaa40e2d150b12b141439e39a112 /perllib/FixMyStreet/Cobrand/Bexley.pm | |
parent | 3fc4923a6a710f9ae0bee30ee805e89adc707f1c (diff) |
[Open311] Allow save/drop of row extra during send
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Bexley.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bexley.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm index 0586c18c4..74a7b5032 100644 --- a/perllib/FixMyStreet/Cobrand/Bexley.pm +++ b/perllib/FixMyStreet/Cobrand/Bexley.pm @@ -83,14 +83,17 @@ sub lookup_site_code_config { } sub open311_config { - my ($self, $row, $h, $params, $contact) = @_; + my ($self, $row, $h, $params) = @_; $params->{multi_photos} = 1; +} - my $extra = $row->get_extra_fields; +sub open311_extra_data { + my ($self, $row, $h, $extra, $contact) = @_; + my $open311_only; if ($contact->email =~ /^Confirm/) { - push @$extra, + push @$open311_only, { name => 'report_url', description => 'Report URL', value => $h->{url} }, { name => 'title', description => 'Title', @@ -123,7 +126,7 @@ sub open311_config { } } - $row->set_extra_fields(@$extra); + return $open311_only; } sub admin_user_domain { 'bexley.gov.uk' } |