[TYPO3-core] Fix bugtracker issue 1736

Stanislas Rolland stanislas.rolland at fructifor.ca
Tue Feb 28 03:10:43 CET 2006


Hi Michael,
> seems this is still pending:
>   
yes. A little gremlin that did bite me.
>> Description: Make TS_CASE object and ts_parser support key value 0. When
>> upgrading to TYPO3 4.0 and to Direct Mail 2.0, conversion of Page TSConfig
>> category 0 to dynamic category may fail. Apply solution proposed by Martin
>> Ficzel.
>>
>> Bugtracker reference: http://bugs.typo3.org/view.php?id=1736
>>     
>
> Your patch changes the TS parser:
>
> -       if ($objStrName)        {
> +       if (isset($objStrName)) {
>
> I'm not sure but have the feeling that $objStrName contains the full object
> path, therefore it is never empty. Please check if this is really needed.
>   
This is essential. This is exactly the reason for the patch.
someproperty.0 = somevalue
will work, but
someproperty {
    0 = somevalue
}
will not work.
I tested this in the context of converting direct_mail categories. If a 
category 0 was defined in the latter manner, it was ignored. Took me 
sometime to discover why.
The patch fixes the problem.
> Part 2 of the patch (tslib_content.php) is ok. +1
>   
Regards,
Stanislas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060227/65c0e207/attachment.htm 


More information about the TYPO3-team-core mailing list