[TYPO3-mvc] Select-field with items-array and foreign_table

Jochen Rau jochen.rau at typoplanet.de
Thu Jan 28 16:56:36 CET 2010


Hi.

On 26.01.10 21:42, Michael Budnick wrote:
>> Problem:
>> If no item of the foreign table is selected (so the value '0' of the items-array is used), then
>> I get this error: #1237301367: $object must be an object or an array, boolean given.
>> when I use {article.category.title} in my template.
>
> I had the same problem, see http://forge.typo3.org/issues/show/6146
>
>> 2) How do I solve this problem ?
>
> I think {article.category.title} should render nothing if the category
> don't exist.
> So I catched the exception. See my patch uploaded with the bug report.

Hm. I am not sure if this should be the intended behavior. It's a 
difference, if there is an empty title or if there is no parent object.

Jochen


More information about the TYPO3-project-typo3v4mvc mailing list