Project

General

Profile

Actions

Bug #61507

closed

wrong definition of pi_flexform/ds/ key for media

Added by Wolfgang Klinger almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

Updated by Georg Kühnberger almost 10 years ago

Can confirm the problem
AND the solution.

Could please someone get this fix into the next release?
Thanks G

Actions #2

Updated by Riccardo De Contardi about 9 years ago

  • Description updated (diff)

Still present in 6.2.14: the file typo3/sysext/frontend/Configuration/TCA/tt_content.php contains the lines:

        'pi_flexform' => array(
            'l10n_display' => 'hideDiff',
            'label' => 'LLL:EXT:cms/locallang_ttc.xlf:pi_flexform',
            'config' => array(
                'type' => 'flex',
                'ds_pointerField' => 'list_type,CType',
                'ds' => array(
                    'default' => '
                        <T3DataStructure>
                          <ROOT>
                            <type>array</type>
                            <el>
                                <!-- Repeat an element like "xmlTitle" beneath for as many elements you like. Remember to name them uniquely  -->
                              <xmlTitle>
                                <TCEforms>
                                    <label>The Title:</label>
                                    <config>
                                        <type>input</type>
                                        <size>48</size>
                                    </config>
                                </TCEforms>
                              </xmlTitle>
                            </el>
                          </ROOT>
                        </T3DataStructure>
                    ',
                    ',media' => file_get_contents(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('cms') . 'flexform_media.xml')
                ),
                'search' => array(
                    'andWhere' => 'CType=\'list\''
                )
            )
        ),

Fixed in version 7 (latest master)

Actions #3

Updated by Benni Mack about 9 years ago

  • Status changed from New to Resolved

Resolved in v7. I encourage you to update. This change was a bit bigger than a few lines, that's why we did not backport it to 6.2. Also have a look at EXT:mediace in v7.

Actions #4

Updated by Benni Mack almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF