aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/IsleOfWight.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-03-02 14:14:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-06-11 22:20:26 +0100
commitb39b8dd5d579b195da2bb2e81bbacea552e09216 (patch)
treef5b2a3ff0237575a76fe6f88d772c27300aa8727 /perllib/FixMyStreet/Cobrand/IsleOfWight.pm
parent1640af532683ef1c698c96c80c642fbcfe76b022 (diff)
[UK Councils] Enable private photo uploading on cobrands whose backend supports it
For https://github.com/mysociety/fixmystreet-commercial/issues/1778
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/IsleOfWight.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/IsleOfWight.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm
index ee1a25465..08741639c 100644
--- a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm
+++ b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm
@@ -77,6 +77,13 @@ sub open311_pre_send {
# Make sure fetched report description isn't shown.
sub filter_report_description { "" }
+around 'open311_config' => sub {
+ my ($orig, $self, $row, $h, $params) = @_;
+
+ $params->{upload_files} = 1;
+ $self->$orig($row, $h, $params);
+};
+
sub open311_munge_update_params {
my ($self, $params, $comment, $body) = @_;