Skip to content

Commit bb910fc

Browse files
committed
bug #23980 Tests and fix for issue in array model data in EntityType field with multiple=true (stoccc)
This PR was squashed before being merged into the 2.7 branch (closes #23980). Discussion ---------- Tests and fix for issue in array model data in EntityType field with multiple=true | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | License | MIT | Fixed tickets | #23927 Provided some tests and the fix for #23927. Rebased to 2.7, replaces #23930 Commits ------- aaba6b4c2b Tests and fix for issue in array model data in EntityType field with multiple=true
2 parents 93b6480 + 2f6933b commit bb910fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/Core/EventListener/MergeCollectionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function onSubmit(FormEvent $event)
8080
return;
8181
}
8282

83-
if (!$dataToMergeInto) {
83+
if (null === $dataToMergeInto) {
8484
// No original data was set. Set it if allowed
8585
if ($this->allowAdd) {
8686
$dataToMergeInto = $data;

0 commit comments

Comments
 (0)