aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-12 14:22:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-12 14:22:34 +0100
commit7ad5744b93c680e9dc641f4286c20dc5df5e2685 (patch)
tree203a4e98f2540100d77f87ddc48573c470bf56e0
parent0a675d24f0210a97018c96b47504d1b346f74f75 (diff)
parentb39b8dd5d579b195da2bb2e81bbacea552e09216 (diff)
Merge branch 'issues/commercial/1778-private-photos-upload'
-rw-r--r--perllib/FixMyStreet/Cobrand/IsleOfWight.pm7
-rw-r--r--perllib/FixMyStreet/Cobrand/Lincolnshire.pm7
-rw-r--r--perllib/FixMyStreet/Cobrand/Peterborough.pm7
3 files changed, 21 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) = @_;
diff --git a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm
index ee40bb173..d1fe319e1 100644
--- a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm
@@ -77,4 +77,11 @@ sub pin_colour {
return 'yellow';
}
+around 'open311_config' => sub {
+ my ($orig, $self, $row, $h, $params) = @_;
+
+ $params->{upload_files} = 1;
+ $self->$orig($row, $h, $params);
+};
+
1;
diff --git a/perllib/FixMyStreet/Cobrand/Peterborough.pm b/perllib/FixMyStreet/Cobrand/Peterborough.pm
index 133767fa7..1bd0c83fb 100644
--- a/perllib/FixMyStreet/Cobrand/Peterborough.pm
+++ b/perllib/FixMyStreet/Cobrand/Peterborough.pm
@@ -89,4 +89,11 @@ sub open311_munge_update_params {
$params->{service_code} = $contact->email;
}
+around 'open311_config' => sub {
+ my ($orig, $self, $row, $h, $params) = @_;
+
+ $params->{upload_files} = 1;
+ $self->$orig($row, $h, $params);
+};
+
1;