Project

General

Profile

Bug #71436 » FormInlineAjaxController.php.patch

Patch for TYPO3 7.6.3-7.6.4 - Witali Rott, 2016-02-23 12:52

View differences:

typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php
$childVanillaUid = (int)$inlineFirstPid;
}
if (isset($ajaxArguments['context'])) {
$context = json_decode($ajaxArguments['context'], true);
if (GeneralUtility::hmac(serialize($context['config'])) === $context['hmac']) {
$parentConfig = $context['config'];
}
}
if ($parentConfig['type'] === 'flex') {
$parentConfig = $this->getParentConfigFromFlexForm($parentConfig, $domObjectId);
}
......
$parentData = $formDataCompiler->compile($formDataCompilerInputForParent);
$parentConfig = $parentData['processedTca']['columns'][$parentFieldName]['config'];
if (isset($ajaxArguments['context'])) {
$context = json_decode($ajaxArguments['context'], true);
if (GeneralUtility::hmac(serialize($context['config'])) === $context['hmac']) {
$parentConfig = $context['config'];
}
}
if ($parentConfig['type'] === 'flex') {
$parentConfig = $this->getParentConfigFromFlexForm($parentConfig, $domObjectId, false);
$parentData['processedTca']['columns'][$parentFieldName]['config'] = $parentConfig;
(7-7/8)