Skip to content

Commit

Permalink
bug #5673 Fix collectionField nested prototype name (ytilotti)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Fix collectionField nested prototype name

Fix the prototype names of collection nested. Fix issue #4710

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

7393353 fix(field): Collection nested prototype name
  • Loading branch information
javiereguiluz committed Apr 21, 2023
2 parents 8b117bd + 7393353 commit 8c23bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Field/Configurator/CollectionConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $c
$field->setFormTypeOptionIfNotSet('allow_delete', $field->getCustomOptions()->get(CollectionField::OPTION_ALLOW_DELETE));
$field->setFormTypeOptionIfNotSet('by_reference', false);
$field->setFormTypeOptionIfNotSet('delete_empty', true);
$field->setFormTypeOptionIfNotSet('prototype_name', '__'.$field->getProperty().'name__');

// TODO: check why this label (hidden by default) is not working properly
// (generated values are always the same for all elements)
Expand Down

0 comments on commit 8c23bd1

Please sign in to comment.