[BUGFIX] Follow up foreign_match_fields not fully supported
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Backend.php
index 66f35d6..539a022 100644 (file)
@@ -589,6 +589,10 @@ class Backend implements \TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface
                                if ($parentTableFieldName !== NULL) {
                                        $row[$parentTableFieldName] = '';
                                }
+                               $relationTableMatchFields = $parentColumnMap->getRelationTableMatchFields();
+                               if (is_array($relationTableMatchFields) && count($relationTableMatchFields)) {
+                                       $row = array_merge(array_fill_keys(array_keys($relationTableMatchFields), ''), $row);
+                               }
                        }
                        $childSortByFieldName = $parentColumnMap->getChildSortByFieldName();
                        if (!empty($childSortByFieldName)) {