Skip to content

Commit

Permalink
[BUGFIX] Process entity 'pid' values in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader committed Aug 11, 2018
1 parent 0a432e7 commit 975e3fe
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ private function processEntityItem(

$tableName = $entityConfiguration->getTableName();
$newId = StringUtility::getUniqueId('NEW');
// Placeholder to preserve creation order
$this->setInDataMap($tableName, $newId);
$this->setInDataMap($tableName, $newId, $values);

foreach ($itemSettings['languageVariants'] as $variantItemSettings) {
$this->processLanguageVariantItem(
Expand All @@ -162,9 +161,6 @@ private function processEntityItem(
$parentId
);
}

// Finally assign values
$this->setInDataMap($tableName, $newId, $values);
}

/**
Expand Down Expand Up @@ -193,8 +189,7 @@ private function processLanguageVariantItem(

$tableName = $entityConfiguration->getTableName();
$newId = StringUtility::getUniqueId('NEW');
// Placeholder to preserve creation order
$this->setInDataMap($tableName, $newId);
$this->setInDataMap($tableName, $newId, $values);

foreach ($itemSettings['languageVariants'] as $variantItemSettings) {
$this->processLanguageVariantItem(
Expand All @@ -204,9 +199,6 @@ private function processLanguageVariantItem(
$nodeId
);
}

// Finally assign values
$this->setInDataMap($tableName, $newId, $values);
}

/**
Expand Down

0 comments on commit 975e3fe

Please sign in to comment.