Actions
Bug #85562
closedTCA 'flex' set new records failed!
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2018-07-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello.
set-up a new record with 'flex' failed.
tca
['columns']['flexform'] => [ 'exclude' => 0, 'displayCond' => 'FIELD:flexform_pointer:REQ:TRUE', 'label' => '', 'config' => [ 'type' => 'flex', 'ds_pointerField' => 'flexform_pointer', ] ],
error
#1478113873: Incomplete "record" based identifier: {"type":"record","tableName":"tx_myext_table","uid":0,"fieldName":"flexform_pointer"} RuntimeException thrown in file [..]/typo3_src-8.7.17/typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php in line 650.
FlexFormTools.php
if (empty($identifier['tableName']) || empty($identifier['uid']) || empty($identifier['fieldName'])) { throw new \RuntimeException( 'Incomplete "record" based identifier: ' . json_encode($identifier), 1478113873 ); }
if the record is new the uid is "0" and empty is true ..
.loon
Updated by Susanne Moog about 6 years ago
- Target version changed from 8.7.19 to Candidate for patchlevel
Updated by Christian Kuhn about 6 years ago
- Category set to FormEngine aka TCEforms
Updated by Christian Kuhn about 1 year ago
- Status changed from New to Closed
I think this is a TCA misconfiguration: ds_pointerField should pick the value from the referenced field, and then look up the according data structure in the 'ds' array. You did not specify a 'ds' array, so the system thinks you're trying to configure a 'record' and not a 'tca' lookup. Add a 'ds' array configuration, and it should work.
I hope it's ok to close here.
Actions