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 authored and nephila-nacrea committed Sep 4, 2024
1 parent f50869e commit 838bdae
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 838bdae

Please sign in to comment.