Skip to content

Commit

Permalink
fixup! [Bexley][WW] Implement worksheet sending for delivery requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Nov 6, 2024
1 parent 68aacc7 commit 95e0f8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 perllib/Open311/Endpoint/Service/UKCouncil/Whitespace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sub _build_attributes {
Open311::Endpoint::Service::Attribute->new(
code => 'quantity',
description => 'Number of containers',
datatype => 'number',
datatype => 'string',
required => 0,
automated => 'hidden_field',
),
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 95e0f8a

Please sign in to comment.