[TYPO3-core] RFC: #17754: Bugfix: Changing TCA via Tools->Configuration breaks TCA

Markus Klein klein.t3 at mfc-linz.at
Mon Feb 28 00:14:32 CET 2011


v3 with CGL clean-ups.

Kind regards
Markus

> 
> 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_v3.patch
Type: application/octet-stream
Size: 1922 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110228/d7588a4a/attachment.obj>


More information about the TYPO3-team-core mailing list