Use renderForm for proper return codes for turbo

This commit is contained in:
Jan Böhmer 2022-03-04 21:20:18 +01:00
parent 3a21c18ba9
commit ae24fb5eb1
7 changed files with 29 additions and 29 deletions

View file

@ -72,8 +72,8 @@ class ScanController extends AbstractController
}
}
return $this->render('LabelSystem/Scanner/dialog.html.twig', [
'form' => $form->createView(),
return $this->renderForm('LabelSystem/Scanner/dialog.html.twig', [
'form' => $form,
]);
}