Skip to content

Commit

Permalink
Merge branch 'issues/commercial/1778-private-photos-upload'
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jun 12, 2020
2 parents 0a675d2 + b39b8dd commit 7ad5744
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perllib/FixMyStreet/Cobrand/IsleOfWight.pm
Expand Up @@ -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) = @_;

Expand Down
7 changes: 7 additions & 0 deletions perllib/FixMyStreet/Cobrand/Lincolnshire.pm
Expand Up @@ -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;
7 changes: 7 additions & 0 deletions perllib/FixMyStreet/Cobrand/Peterborough.pm
Expand Up @@ -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;

0 comments on commit 7ad5744

Please sign in to comment.