Bug #70918 » fix.patch
FormInlineAjaxController.php 2016-09-20 17:08:00.000000000 +0200 | ||
---|---|---|
use TYPO3\CMS\Core\Utility\ArrayUtility;
|
||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||
use TYPO3\CMS\Core\Utility\MathUtility;
|
||
use TYPO3\CMS\Backend\Utility\BackendUtility;
|
||
/**
|
||
* Handle FormEngine inline ajax calls
|
||
... | ... | |
if (MathUtility::canBeInterpretedAsInteger($parent['uid'])) {
|
||
$command = 'edit';
|
||
$vanillaUid = (int)$parent['uid'];
|
||
$databaseRow = [
|
||
// TcaInlineExpandCollapseState needs the record uid
|
||
'uid' => (int)$parent['uid'],
|
||
];
|
||
$databaseRow = BackendUtility::getRecord($parent['table'], $parent['uid']);
|
||
} else {
|
||
$command = 'new';
|
||
$databaseRow = [];
|
||
... | ... | |
$parent = $inlineStackProcessor->getStructureLevel(-1);
|
||
$parentFieldName = $parent['field'];
|
||
$databaseRow = [
|
||
// TcaInlineExpandCollapseState needs this
|
||
'uid' => (int)$parent['uid'],
|
||
];
|
||
$databaseRow = BackendUtility::getRecord($parent['table'], $parent['uid']);
|
||
$databaseRow = $this->addFlexFormDataStructurePointersFromAjaxContext($ajaxArguments, $databaseRow);
|
- « Previous
- 1
- 2
- Next »