mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
Use native httpfoundation method to convert json to an array
This commit is contained in:
parent
6dd4efc34e
commit
5b8bcd36be
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue