mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Fixed static analysis issue
This commit is contained in:
parent
5aaba102a7
commit
2e160b0b0b
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class CollectionTypeExtension extends AbstractTypeExtension
|
|||
// This event listener fixes the error mapping for newly created elements of collection types
|
||||
// Without this method, the errors for newly created elements are shown on the parent element, as forms
|
||||
// can not map it to the correct element.
|
||||
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (PreSubmitEvent $event) use ($options) {
|
||||
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (PreSubmitEvent $event) {
|
||||
$data = $event->getData();
|
||||
$form = $event->getForm();
|
||||
$config = $form->getConfig();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue