From e1b7c5d4ad5883f5569dc5147f836b1f1e4f589b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 31 Jul 2024 13:52:10 +0100 Subject: [PATCH] Allow through attribute[]s on any updates. --- perllib/Open311/Endpoint/Role/mySociety.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/perllib/Open311/Endpoint/Role/mySociety.pm b/perllib/Open311/Endpoint/Role/mySociety.pm index faeb1aefa..8cc9c8747 100644 --- a/perllib/Open311/Endpoint/Role/mySociety.pm +++ b/perllib/Open311/Endpoint/Role/mySociety.pm @@ -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