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
105 105
            $childVanillaUid = (int)$inlineFirstPid;
106 106
        }
107 107

  
108
        if (isset($ajaxArguments['context'])) {
109
            $context = json_decode($ajaxArguments['context'], true);
110
            if (GeneralUtility::hmac(serialize($context['config'])) === $context['hmac']) {
111
                $parentConfig = $context['config'];
112
            }
113
        }
114
        
108 115
        if ($parentConfig['type'] === 'flex') {
109 116
            $parentConfig = $this->getParentConfigFromFlexForm($parentConfig, $domObjectId);
110 117
        }
......
266 273
        $parentData = $formDataCompiler->compile($formDataCompilerInputForParent);
267 274
        $parentConfig = $parentData['processedTca']['columns'][$parentFieldName]['config'];
268 275

  
276
        if (isset($ajaxArguments['context'])) {
277
            $context = json_decode($ajaxArguments['context'], true);
278
            if (GeneralUtility::hmac(serialize($context['config'])) === $context['hmac']) {
279
                $parentConfig = $context['config'];
280
            }
281
        }
282
        
269 283
        if ($parentConfig['type'] === 'flex') {
270 284
            $parentConfig = $this->getParentConfigFromFlexForm($parentConfig, $domObjectId, false);
271 285
            $parentData['processedTca']['columns'][$parentFieldName]['config'] = $parentConfig;
(7-7/8)