Project

General

Profile

Actions

Bug #64853

closed

Adding new fields for the same table with two extension

Added by Bilel ELLOUZE over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-02-04
Due date:
% Done:

0%

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

Description

I have two extension those adds fields to same table.
For Typo3 version 4.2 all is well, But after migrating to version 6.2 of typo3 only fields added by an extension will be visible and others fields added by other extension will be invisible.
If I install a single extension then their fields visible. But if I install the two extensions only the fields added by one of them will be visible and the other fields will be invisible.

my code is:
  • extension_1: ext_tables.php
t3lib_div::loadTCA('table_name');
t3lib_extMgm::addTCAcolumns('table_name',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('table_name','tx_myext_newfield1');
  • extension_2: ext_tables.php
t3lib_div::loadTCA('table_name');
t3lib_extMgm::addTCAcolumns('table_name',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('table_name','tx_myext_newfield2');

I have to change my code and still same problem.

t3lib_div::loadTCA('table_name');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('table_name',$tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('table_name','tx_myext_newfield1');

t3lib_div::loadTCA('table_name');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('table_name',$tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('table_name','tx_myext_newfield2');
Actions

Also available in: Atom PDF