Bug #85562

TCA 'flex' set new records failed!

Added by Loon Buster 11 months ago. Updated 9 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2018-07-14
Due date:
% Done:

0%

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

History

#1 Updated by Susanne Moog 9 months ago

  • Target version changed from 8.7.19 to Candidate for patchlevel

#2 Updated by Christian Kuhn 9 months ago

  • Category set to FormEngine aka TCEforms

Also available in: Atom PDF