Project

General

Profile

Actions

Bug #16543

closed

page module: MM table needs TCA for neg_foreign_table when value is zero

Added by Franz Holzinger about 18 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-09-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

typo3-7.png (28.4 KB) typo3-7.png Administrator Admin, 2006-09-08 21:24
Actions #1

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)?

Actions #2

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF