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

Steffen Gebert steffen.gebert at typo3.org
Mon Feb 28 10:34:38 CET 2011


Hi Markus,

your version 2 wasn't worse ;-)

Some explanations:On 27.02.11 16:00, Markus Klein wrote:

* use strict comparison for strings (=== 'ctrl' instead of ==)
* comments not in line, but in a separate one
* predefined constant LF instead of "\n"

Nevertheless, +1 by testing and by reading for my v4.

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

  > 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 --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17754_v4.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110228/21bb2672/attachment.asc>


More information about the TYPO3-team-core mailing list