[TYPO3-core] RFC: #17754: Bugfix: Changing TCA via Tools->Configuration breaks TCA
Markus Klein
klein.t3 at mfc-linz.at
Sun Feb 27 16:00:40 CET 2011
This is a SVN patch request.
Type: Bugfix
Branches: trunk, 4.5
Bugtracker reference: http://bugs.typo3.org/view.php?id=17754
Problem:
Changing the TCA (especially the columns-part of a table) via Tools->Configuration breaks eg. the list module.
Tools->Configuration writes strings like
$GLOBALS['TCA']['tt_news']['columns']['image']['config']['allowed'] = 'jpg';
to typo3conf/extTables.php.
When this file gets included there may be the problem, that loadTCA has never been called, so the TCA array is incomplete.
Furthermore if you set the columns part in extTables.php any proceeding call to loadTCA will not work, since 'columns' is already defined.
Solution:
My patch adds a loadTCA call to extTables.php (if not already present) if a value for TCA is updated which does not go to ctrl part.
Kind regards
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 17754_v2.patch
Type: application/octet-stream
Size: 1929 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110227/f46536d8/attachment-0001.obj>
More information about the TYPO3-team-core
mailing list