[TYPO3-core] IRRE long titles on groupdb fields are displayed wrong (<span title)

Dan Osipov dosipov at phillyburbs.com
Mon Apr 20 19:13:35 CEST 2009


+1 on testing

Dan Osipov
Calkins Media
http://danosipov.com/blog/

Nabil Saleh wrote:
> Hi Chritian,
> 
> thanks for checking my request I have made an example-extension 
> (http://bugs.typo3.org/view.php?id=10823) now, so anybody can reproduce 
> the error easily.
> 
> The extension comes with 2 tables.
> 
> table1 is related with table2 and irre is defined for it.
> 
> To reproduce the error:
> 
> 1. create a record of table2 with a very long title
> 2. create a record of table1 and add the record of table2 to the 
> relation and save the record.
> 
> Title is croped twice without patch.(screenshot)
> 
> bye Nabil
> 
> 
> 
> Christian Kuhn schrieb:
>> Hi Nabil.
>>
>> Nabil Saleh wrote:
>>> Type: Bugfix
>>>
>>> Branches: trunk
>>>
>>> BT reference: http://bugs.typo3.org/view.php?id=10823
>>>
>>> Problem:
>>> If the type of the relation is groupdb the title is displayed wrong. The
>>> title is croped twice.
>>>
>>> "<span title=" is prefixed to the title.
>>>
>>> Solution:
>>> Only crop once.
>>
>> Thanks for the patch!
>>
>> Reading the source the problem is obvious:
>> if !groupdb
>>     $recTitle = getProcessedValueExtra    (no prep / crop)
>> else
>>     $recTitle = getRecordTitle    (calls prep / crop)
>> $recTitle = getRecordTitlePrep    (explicit prep / crop)
>>
>> So your solution is fine, here is my +1 on reading.
>>
>> The bug is buried deep in irre, it would be great if you could provide a
>> simple "How to reproduce" or even better a tiny test extension next
>> time. Maybe you could just strip down the extension where this problem
>> occurred for you. This will make it much easier to actually test the bug
>> and the solution.
>>
>>
>> Thanks
>> Christian
> 
> 
> ------------------------------------------------------------------------
> 


More information about the TYPO3-team-core mailing list