Bug #17477
closedUndefined variable is used in t3lib_BEfunc::exec_foreign_table_where_query
0%
Description
function exec_foreign_table_where_query($fieldValue,$field='',$TSconfig=array(),$prefix='') {
global $TCA;
t3lib_div::loadTCA($foreign_table);
$foreign_table = $fieldValue['config'][$prefix.'foreign_table'];
Here, $foreign_table is used although it is undefined, causing the loadTCA to fail.
(issue imported from #M5983)
Files
Updated by Oliver Hader over 17 years ago
the $prefix variable could be empty or 'neg_'.
The method you mentioned is called from t3lib_transferdata::selectAddForeign(), but I bet you knew that already. ;-)
The loadTCA line was introduced in a patch for Workspaces&IRRE:
http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/12461
Updated by Christian Kuhn about 16 years ago
What is the effect of this undefined call?
Digging into the function I think that $rootLevel is always null because of this and the check for "if ($rootLevel) { ... } else { .. } will always jump into the else part.
So a problem might occur for mm relations on the root page?
Updated by Benni Mack almost 15 years ago
This is a clear bug, would you care to send it to the core list?
Updated by Steffen Gebert about 14 years ago
committed to
- trunk rev. 8809
- 4-4 rev. 8808
Updated by Steffen Gebert about 14 years ago
Now also committed to
- 4-3 rev. 8877
- 4-2 rev. 8876