[TYPO3-dam-devel] RFC #15342: Call to deprecated function in class.tx_dam_tcefunc.php

Lorenz Ulrich lorenz-typo3 at visol.ch
Thu Dec 9 16:19:39 CET 2010


Hello DAM people!

This is a SVN patch request.

Type: compatibility fix

BT reference: http://bugs.typo3.org/view.php?id=15342

Problem:
class.tx_dam_tcefunc.php uses t3lib_TCEforms->noTitle() to replace a not 
existing title of a DAM element to a localized [No title] in TCEforms 
(i.e. for the image field in tt_content table).

t3lib_TCEforms->noTitle() is deprecated since 4.1.

Solution:
The attached patch checks for the existence of a title and outputs [No 
title] by using t3lib_BEfunc::getNoRecordTitle if no title is set.

Comment:
It is highly unlikely that you will encounter DAM items without title as 
the title is a mandatory field and automatically generated on indexing a 
file. So you need to remove a title manually in the database to see this 
[No title].


Best regards,


Lorenz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dam_15342.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-dam/attachments/20101209/1a6e3809/attachment.asc>


More information about the TYPO3-team-dam mailing list