Use native httpfoundation method to convert json to an array

This commit is contained in:
Jan Böhmer 2026-05-04 21:36:23 +02:00
parent 6dd4efc34e
commit 5b8bcd36be

View file

@ -547,7 +547,7 @@ class BulkInfoProviderImportController extends AbstractController
$this->denyAccessUnlessGranted('edit', $part);
// Get provider key/id from request body, or fall back to top search result
$body = json_decode($request->getContent(), true) ?? [];
$body = $request->toArray();
$providerKey = $body['providerKey'] ?? null;
$providerId = $body['providerId'] ?? null;