[TYPO3-mvc] Select-field with items-array and foreign_table
Michael Budnick
michael at budnick.de
Tue Jan 26 21:42:39 CET 2010
Hello Stefan,
> 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.
regards
Michael Budnick
More information about the TYPO3-project-typo3v4mvc
mailing list