Bug #16543
closedpage module: MM table needs TCA for neg_foreign_table when value is zero
0%
Description
In the page module on the right side I get an SQL error message:
SELECT *
FROM
WHERE
uid=0
The reason for this is the line 1906 in class.t3lib_befunc.php
$rVal = intval($rVal);
if ($rVal>0) {
$r=t3lib_BEfunc::getRecordWSOL($theColConf['foreign_table'],$rVal);
} else {
$r=t3lib_BEfunc::getRecordWSOL($theColConf['neg_foreign_table'],-$rVal);
}
The value is 0 here, but no neg_foreign_table has been defined. I think the if should be
if ($rVal>=0)
.
$rVal comes from the value of the field and in this case it is always a positive number, but 0 by default when nothing has been assigned to it.
function getProcessedValue:
$value: string $value is the value of that field from a selected record
(issue imported from #M4184)
Files
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - PHP Version deleted (
5)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.