Skip to content

Commit

Permalink
Merge pull request #386 from digital-services-act/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
alainvd committed Apr 22, 2024
2 parents b8dd94e + edc2053 commit 63f815a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Services/GroupedSubmissionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,9 @@ public function sanitizePayload(
$errors['statement_' . $index] = $validator->errors()->toArray();
}

$statement['territorial_scope'] = $this->european_countries_service->filterSortEuropeanCountries($statement['territorial_scope'] ?? []);

try {
$payload['statements'][$index] = $validator->validated();
$payload['statements'][$index]['territorial_scope'] = $this->european_countries_service->filterSortEuropeanCountries($statement['territorial_scope'] ?? []);
} catch (ValidationException) {
}
}
Expand Down

0 comments on commit 63f815a

Please sign in to comment.