Project

General

Profile

Actions

Bug #21011

closed

t3lib_loadDBGroup::writeMM() -> Unable to delete file relations

Added by Jan Messer about 15 years ago. Updated about 11 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

A value of the uid foreign field has to be quoted!

Methode: t3lib_loadDBGroup::writeMM()
Line: 448

CODE <<<
if(is_array($mmItem)) {
$removeClauses[] = 'tablenames="'.$mmItem0.'" AND '.$uidForeign_field.'='.$mmItem1;
} else {
$removeClauses[] = $uidForeign_field.'='.$mmItem;
}
CODE;

--- change to ---

DEBUGGED_CODE <<<
if(is_array($mmItem)) {
$removeClauses[] = 'tablenames="'.$mmItem0.'" AND '.$uidForeign_field.'="'.$mmItem1.'"';
} else {
$removeClauses[] = $uidForeign_field.'="'.$mmItem.'"';
}
DEBUGGED_CODE;

(issue imported from #M11897)

Actions

Also available in: Atom PDF