Project

General

Profile

Actions

Bug #85562

closed

TCA 'flex' set new records failed!

Added by Loon Buster almost 6 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
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

Actions #1

Updated by Susanne Moog over 5 years ago

  • Target version changed from 8.7.19 to Candidate for patchlevel
Actions #2

Updated by Christian Kuhn over 5 years ago

  • Category set to FormEngine aka TCEforms
Actions #3

Updated by Christian Kuhn 6 months 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

Also available in: Atom PDF