[TYPO3-core] RFC: Bug 4827: Call to undefined method t3lib_BEfunc::getrecordtitleprep()

Ingmar Schlecht ingmar at typo3.org
Wed Jan 24 14:06:18 CET 2007


Hi Olly,

the patch looks good, +1.

However, it would be great if you could introduce another optional
parameter $forceLen to the getRecordTitlePrep() function before committing.

cheers
Ingmar

Oliver Hader schrieb:
> This is a SVN patch request.
> 
> Problem:
> While setting some alternative label like foreign_label or
> symmetric_label, method t3lib_BEfunc::getRecordTitlePrep($title) is
> called, which unfortunately doesn't exist.
> This refers to class.t3lib_tceforms_inline.php line 372 and TYPO3 4.1beta3.
> 
> Solution:
> Integrate the missing method getRecordTitlePrep($title) to t3lib_BEfunc
> that crops a string depending on the setting in BE_USER->uc['titleLen'].
> The functionality was taken from t3lib_BEfunc::getRecordTitle and put to
> a new method to avoid redundancy - it was called there, when the $prep
> parameter was true.
> 
> Comments:
> IRRE was developed on the typo3xdev-playground and the results were
> merged from time to time to the core. The function
> getRecordTitlePrep($title) was once forgotten to be integrated to the
> TYPO3core.
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=4827
> 
> Branch:
> Trunk
> 
> 
> olly


More information about the TYPO3-team-core mailing list