Skip to content

Commit

Permalink
Allow through attribute[]s on any updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 14, 2024
1 parent ce9ac7d commit e1b7c5d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions perllib/Open311/Endpoint/Role/mySociety.pm
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,9 @@ sub POST_Service_Request_Update_input_schema {
delete $attributes->{required}{update_id};
}

# Allow attributes through for Oxfordshire XXX
if ($jurisdiction eq 'oxfordshire') {
for my $key (grep { /^attribute\[\w+\]$/ } keys %$args) {
$attributes->{optional}{$key} = '//str';
}
# Allow attributes through
for my $key (grep { /^attribute\[\w+\]$/ } keys %$args) {
$attributes->{optional}{$key} = '//str';
}

# Allow nsg_ref through for Bexley XXX
Expand Down

0 comments on commit e1b7c5d

Please sign in to comment.