Bug #87041

CType in TCA[ctrl][label] leads to strange behavior

Added by Manuel Selbach over 2 years ago. Updated about 1 year ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


It has turned out, that if you use CType as label for the copy process will be "broken".
If this is the case, the text in prependAtCopy will be used and appended to the CType, which then is a none registered CType.

Steps to reproduce:

  • change the label for tt_content to CType
  • flush caches
  • create an element
  • copy and paste it within the same language


  • have a look at DataHandler in line 3509 the method getCopyHeader() will be called for field CType

CType = text
prependAtCopy = (copy %s)

after getCopyHeader() has been called this will result in: text (copy 1)

This also applies to 8.7 LTS

PS: If you have e.g. EXT:content_defender in place, this will prevent you even from pasting the element.


ctype-copy-1.png (12.4 KB) ctype-copy-1.png Manuel Selbach, 2018-11-29 16:15

Updated by Manuel Selbach over 2 years ago

A pull request has been generated to inform about that within the TCA Reference: https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TCA/pull/206


Updated by Georg Ringer over 2 years ago

this is incomplete as it will also break if an integer field is used as label field, or a relation or whatever what is not a simple input/text field


Updated by Georg Ringer over 2 years ago

however what would be possible is to set the copy suffix only if type input or text is used! that would be easy


Updated by Georg Ringer over 2 years ago

  • Status changed from New to Accepted

Updated by Sybille Peters over 2 years ago

Please see rendered page in docs with new warning: https://docs.typo3.org/typo3cms/TCAReference/Ctrl/Index.html#label

If things in core may change, please be sure to update the docs. Thanks.


Updated by Georg Ringer about 1 year ago

  • Status changed from Accepted to Closed

closing it as it is now documented properly

Also available in: Atom PDF