Commit b20e76c8 authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[FOLLOWUP][BUGFIX] Allow processing of multiple new record localizations

Complete data-map for a table is handed over in $idValues to
DataMapProcessor::fetchDependencies(string $tableName, array $ids),
but should only contain the id-values - either integer or string.

Resolves: #80239
Releases: master, 8.7
Change-Id: If12562dad839687b7d60855fa99d9ffc21bc1167
Reviewed-on: https://review.typo3.org/53213


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
parent c32049af
......@@ -175,7 +175,7 @@ class DataMapProcessor
$dependencies = $this->fetchDependencies(
$forTableName,
$this->filterNewItemIds($forTableName, $idValues)
$this->filterNewItemIds($forTableName, array_keys($idValues))
);
foreach ($idValues as $id => $values) {
......@@ -809,8 +809,8 @@ class DataMapProcessor
}
$fieldNamesMap = array_combine($fieldNames, $fieldNames);
$persistedIds = $this->filterNumericIds(array_keys($ids), true);
$createdIds = $this->filterNumericIds(array_keys($ids), false);
$persistedIds = $this->filterNumericIds($ids, true);
$createdIds = $this->filterNumericIds($ids, false);
$dependentElements = $this->fetchDependentElements($tableName, $persistedIds, $fieldNames);
foreach ($createdIds as $createdId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment