Skip to content

Commit

Permalink
squash! [Bromley][WW] Send multiple photos through on all categories
Browse files Browse the repository at this point in the history
Turns out not all, only the Echo ones.
  • Loading branch information
dracos committed Apr 19, 2024
1 parent bc11789 commit cdc9de9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions perllib/FixMyStreet/Cobrand/Bromley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ sub available_permissions {
Sets options for what data will be sent to the open311 integrations.
Bromley require all images to be sent for reports - in Echo, these
will be sent as binaries for upload, in open311 they will be sent as urls.
Bromley require all images to be sent for Echo reports, as binaries for upload.
We do not 'always_send_latlong' or 'extended_description'
Expand All @@ -185,7 +184,9 @@ We do 'send_notpinpointed'
sub open311_config {
my ($self, $row, $h, $params, $contact) = @_;

$params->{multi_photos} = 1;
if ($contact->email =~ /^\d+$/) {
$params->{multi_photos} = 1;
}
if ($contact->get_extra_metadata('group') eq 'Waste') {
$params->{upload_files} = 1;
}
Expand Down

0 comments on commit cdc9de9

Please sign in to comment.