[TYPO3-core] Weird bug in the TCA definition of sys_categories

Oliver Hader oliver.hader at typo3.org
Sat Aug 24 13:50:41 CEST 2013


Hi François,

Am 23.08.13 21:52, schrieb François Suter:
> Hi Jigal,
> 
>> It looks definitely weird, but it has been part of the TCA since the
>> patch was merged:
>> https://review.typo3.org/#/c/12672/8/t3lib/stddb/tca_sys_category.php
> 
> I know. It's still wrong though. At the very least, the second
> definition will override the first, so some cleanup is needed. I'm just
> trying to find out what exactly needs to be done. A simple removal?
> Changing the key, because it was meant to be another field's definition?
> 
> Hopefully Fabien can chime in.

Looks like a copy & paste thingy... By searching for the displayCond
statement on Google, I've spotted e.g. something like this (hence I
don't know where this was taken from and why):
https://github.com/martin-helmich/typo3-mittwald_timetrack/blob/master/Configuration/TCA/Role.php#L46

However, the first definition of t3ver_label in the sys_category TCA is
correct. t3ver_label is filled directly in DataHandler if used in
workspaces, but can be set individually if used by "regular" versioning
of elements, like in VersionModuleController...

Thus, the following column definition is fine:

't3ver_label' => array(
  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
  'config' => array(
	'type' => 'input',
	'size' => '30',
	'max' => '30'
  )
),

Cheers,
Olly
-- 
Oliver Hader
TYPO3 CMS Core Team Leader

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


More information about the TYPO3-team-core mailing list