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:
Jan Böhmer 2023-07-16 23:19:02 +02:00
parent b74ab18a6d
commit c810b6772c
5 changed files with 61 additions and 2 deletions

View file

@ -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);