Bug #21656
closedTCEforms exec_foreign_table_where_query fails with an Oracle error
0%
Description
When using TemplaVoilà and clicking on "Create new Template Object" on Page templates, this opens a TCEforms which should contain a list of existing TO to be used as parent.
The TCA query fails with
ORA-01722: invalid number This may indicate a table defined in tables.php is not existing in the database!
First part of the error message is from Oracle, the "This may indicate"... comes from t3lib_BEfunc.
Reason is that marker ###REC_FIELD_UID### is replaced, at this point by something like 'NEW4b0b5634a1789' while Oracle expects a number for a UID field (as with any UID fields in TYPO3 tables).
Solution: Test whether REC_FIELD_UID contains a number and if not put "0" instead, this will lead to same result.
(issue imported from #M12718)
Files