[TYPO3-core] IRRE long titles on groupdb fields are displayed wrong (<span title)
Nabil Saleh
nabil-saleh at gmx.de
Wed Apr 15 15:32:11 CEST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T3X_irrebugdemo-0_0_0-z-200904151521.t3x
Type: application/octet-stream
Size: 17394 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090415/823a483f/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: irrebugdemo.gif
Type: image/gif
Size: 55655 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090415/823a483f/attachment-0001.gif
More information about the TYPO3-team-core
mailing list