mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 02:09:03 +02:00
Show the value returned by the provider on part creation page.
This makes it easier to check or assign a element manually
This commit is contained in:
parent
b74ab18a6d
commit
c810b6772c
5 changed files with 61 additions and 2 deletions
|
@ -88,9 +88,12 @@ class InfoProviderController extends AbstractController
|
|||
{
|
||||
$this->denyAccessUnlessGranted('@info_providers.create_parts');
|
||||
|
||||
$new_part = $this->infoRetriever->createPart($providerKey, $providerId);
|
||||
$dto = $this->infoRetriever->getDetails($providerKey, $providerId);
|
||||
$new_part = $this->infoRetriever->dtoToPart($dto);
|
||||
|
||||
$form = $this->createForm(PartBaseType::class, $new_part);
|
||||
$form = $this->createForm(PartBaseType::class, $new_part, [
|
||||
'info_provider_dto' => $dto,
|
||||
]);
|
||||
|
||||
$form->handleRequest($request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue