#16652mysql_fetch_assoc If in tca select->maxitems > 1 AND foreign_table_where contains "sys_language_uid = ###REC_FIELD_sys_langu...
Description
I have createt an extension. When I write the following in the tca.php File I get the an error:
“config” => Array (
“type” => “select”,
“foreign_table” => “xxx”,
“foreign_table_where” => “AND xxx.sys_language_uid = ###REC_FIELD_sys_language_uid### ORDER BY xxx.name”,
“maxitems” => 100,
….
)
I get this error if I create a record of this type:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in xxx/htdocs/typo3_src-4.0/t3lib/class.t3lib_db.php on line 801
The error comes only if “###REC_FIELD_sys_language_uid### “ is in the “foreign_table_where” AND “maxitems” is higher then 1.
If I set “maxitems” = 1 or I delete the part “AND xxx.sys_language_uid = ###REC_FIELD_sys_language_uid###” the error does not come.
(sorry if my english is not so good…. ;-) )
(issue imported from #M4405)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.