Commit 693d3bc6 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Saving fal relation fails

Resolves: #69652
Releases: master
Change-Id: I941ff6508cf5c4c2315018665b1f8050489058b7
Reviewed-on: http://review.typo3.org/43174


Reviewed-by: Frans Saris's avatarFrans Saris <franssaris@gmail.com>
Tested-by: Frans Saris's avatarFrans Saris <franssaris@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 5d00d278
......@@ -267,8 +267,12 @@ class InlineRecordContainer extends AbstractContainer {
$options = $formDataCompiler->compile($formDataCompilerInput);
$options['renderType'] = 'fullRecordContainer';
if (!MathUtility::canBeInterpretedAsInteger($row['uid'])) {
$options['databaseRow']['uid'] = $row['uid'];
// @todo: This hack merges data from already prepared row over fresh row again.
// @todo: This really must fall ...
foreach ($row as $field => $value) {
if ($command === 'new' && is_string($value) && $value !== '' && array_key_exists($field, $options['databaseRow'])) {
$options['databaseRow'][$field] = $value;
}
}
return $this->nodeFactory->create($options)->render();
......
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