Bug #72030
closedTabs/fields from inline TCA fields disappear after saving
0%
Description
I have some downloads in my self-made product extension. Download is a class with a title and an objectstorage of files.
In the backend I create a product and in this product I create those download objects. Before saving the first time, I can see and edit the file field. After saving they disappear. Only the title field stays visible.
I tried to move the downloads to a new tab, but they disappered, too. Even the access tab disappeared (screenshots).
My tca was created by extension builder 7.6.0
Files
Updated by Markus Klein almost 9 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
7 LTS)
Can you please test this again on the latest version from the master branch? Chances are good that this has been fixed meanwhile.
Otherwise, please post the TCA here for better analysis.
Updated by Tobias Pfender almost 9 years ago
How do I update my TYPO3 core correctly? I tried to overwrite my sysext with the sysext from the latest TYPO3.CMS master branch, but that didn't solve my probleme.
Here is my TCA for downloads in products class
'downloads' => array( 'exclude' => 1, 'label' => 'LLL:EXT:mb_products/Resources/Private/Language/locallang_db.xlf:tx_mbproducts_domain_model_product.downloads', 'config' => array( 'type' => 'inline', 'foreign_table' => 'tx_mbproducts_domain_model_downloads', 'foreign_field' => 'product', 'maxitems' => 9999, 'appearance' => array( 'collapseAll' => 0, 'levelLinksPosition' => 'top', 'showSynchronizationLink' => 1, 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1 ), ), ),
and here the download TCA
<?php return array( 'ctrl' => array( 'title' => 'LLL:EXT:mb_products/Resources/Private/Language/locallang_db.xlf:tx_mbproducts_domain_model_downloads.title', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array( 'disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', ), 'searchFields' => 'title,files,', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('mb_products') . 'Resources/Public/Icons/tx_mbproducts_domain_model_downloads.gif' ), 'interface' => array( 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, files', ), 'types' => array( '1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, --div--;Dateien,files, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), ), 'palettes' => array( '1' => array('showitem' => ''), ), 'columns' => array( 'sys_language_uid' => array( 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => array( 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => array( array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0) ), ), ), 'l10n_parent' => array( 'displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => array( 'type' => 'select', 'renderType' => 'selectSingle', 'items' => array( array('', 0), ), 'foreign_table' => 'tx_mbproducts_domain_model_downloads', 'foreign_table_where' => 'AND tx_mbproducts_domain_model_downloads.pid=###CURRENT_PID### AND tx_mbproducts_domain_model_downloads.sys_language_uid IN (-1,0)', ), ), 'l10n_diffsource' => array( 'config' => array( 'type' => 'passthrough', ), ), 't3ver_label' => array( 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => array( 'type' => 'input', 'size' => 30, 'max' => 255, ) ), 'hidden' => array( 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => array( 'type' => 'check', ), ), 'starttime' => array( 'exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => array( 'type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => array( 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) ), ), ), 'endtime' => array( 'exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => array( 'type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => array( 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) ), ), ), 'title' => array( 'exclude' => 1, 'label' => 'LLL:EXT:mb_products/Resources/Private/Language/locallang_db.xlf:tx_mbproducts_domain_model_downloads.title', 'config' => array( 'type' => 'input', 'size' => 30, 'eval' => 'trim' ), ), 'files' => array( 'exclude' => 1, 'label' => 'LLL:EXT:mb_products/Resources/Private/Language/locallang_db.xlf:tx_mbproducts_domain_model_downloads.files', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( 'files', array( 'appearance' => array( 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:media.addFileReference' ), 'foreign_types' => array( '0' => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array( 'showitem' => ' --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette' ) ), ) ), ), ), );
Updated by Markus Klein almost 9 years ago
Your TCA for the downloads table does not contain the field product
referenced in 'foreign_field' => 'product'
Updated by Morton Jonuschat almost 9 years ago
Also your 'types' entry in the download TCA should start at '0' as that's the default entry and you don't have any type field configured
Updated by Tobias Pfender almost 9 years ago
Thanks a lot for your support.
We updated to 7.6.2 today and it's working now.
Anyway I added product to my downloads TCA and changed the 'types' entry to 0. ext:Extension Builder set it to 1 by default.
Updated by Markus Klein almost 9 years ago
- Status changed from Needs Feedback to Closed