Issue Bug Closed

#61507wrong definition of pi_flexform/ds/ key for media

Wolfgang Klinger 09/10/14, 14:33 updated 10/02/18, 11:52

Description

I think there’s a small bug in
typo3/sysext/frontend/Configuration/TCA/tt_content.php

even though it works most of the time, I had the problem that the media flexform suddenly disappeared in the backend (while the frontend output still worked)
and only the default flexform was visible
(I think the problem is, that list_type is defined as varchar, but the default value is ‘0’ and not an empty string,
so the code in getFlexFormDS (see below) checks for „0,media“ and not „,media“)

IS:

$TCA['tt_content']['columns']['pi_flexform']['config']['ds'][',media']

SHOULD BE:

$TCA['tt_content']['columns']['pi_flexform']['config']['ds']['*,media']

see code in \TYPO3\CMS\Backend\Utility\BackendUtility::getFlexFormDS

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.