diff options
author | M Somerville <matthew-github@dracos.co.uk> | 2020-08-11 15:46:06 +0100 |
---|---|---|
committer | M Somerville <matthew-github@dracos.co.uk> | 2020-10-12 13:38:07 +0100 |
commit | 90d23fc7b21f4391aeb92418e212195a18d72d5e (patch) | |
tree | 172e7c8737d61c61b9222a15861ac246704ab724 /perllib | |
parent | e008a0b1ddd45e9afed4198a32b20d6c4f5c6d66 (diff) |
[Oxfordshire] Extra questions for raising defect.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Oxfordshire.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm index 34e21ddfc..ab0bfe563 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -181,6 +181,10 @@ sub open311_munge_update_params { $params->{'attribute[raise_defect]'} = 1; $params->{'attribute[easting]'} = $e; $params->{'attribute[northing]'} = $n; + + foreach (qw(defect_item_category defect_item_type defect_item_detail defect_location_description)) { + $params->{"attribute[$_]"} = $p->get_extra_metadata($_); + } } } @@ -197,6 +201,16 @@ sub should_skip_sending_update { return 0; } + +sub report_inspect_update_extra { + my ( $self, $problem ) = @_; + + foreach (qw(defect_item_category defect_item_type defect_item_detail defect_location_description)) { + my $value = $self->{c}->get_param($_); + $problem->set_extra_metadata($_ => $value) if $value; + } +} + sub on_map_default_status { return 'open'; } sub admin_user_domain { 'oxfordshire.gov.uk' } |