Skip to content

Commit

Permalink
Merge branch 'bexley-ww-container-requests' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Nov 6, 2024
2 parents 004deb6 + 95e0f8a commit 9e7e8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perllib/Open311/Endpoint/Integration/Whitespace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub post_service_request {
my $integration = $self->get_integration;

$args->{attributes}{location_of_containers} //= '';
$args->{attributes}{quantity} //= 1;
$args->{attributes}{quantity} ||= 1;

my $worksheet_id = $integration->CreateWorksheet({
service_code => $args->{service_code},
Expand Down
2 changes: 1 addition & 1 deletion t/open311/endpoint/whitespace.t
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ subtest "GET service" => sub {
{ code => 'fixmystreet_id', order => 3, required => 'true', variable => 'false', datatype => 'string', datatype_description => '', automated => 'server_set', description => 'external system ID' },
{ code => 'assisted_yn', order => 4, required => 'false', variable => 'true', datatype => 'string', datatype_description => '', automated => 'hidden_field', description => 'Assisted collection (Yes/No)' },
{ code => 'location_of_containers', order => 5, required => 'false', variable => 'true', datatype => 'string', datatype_description => '', automated => 'hidden_field', description => 'Location of containers' },
{ code => 'quantity', order => 6, required => 'false', variable => 'true', datatype => 'number', datatype_description => '', automated => 'hidden_field', description => 'Number of containers' },
{ code => 'quantity', order => 6, required => 'false', variable => 'true', datatype => 'string', datatype_description => '', automated => 'hidden_field', description => 'Number of containers' },
],
}, 'correct json returned';
};
Expand Down

0 comments on commit 9e7e8e3

Please sign in to comment.