mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
fix ambigours ID in Where clause in unUsedFiles function
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44460 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
eeef71981d
commit
b10466a0da
@ -746,7 +746,7 @@ JS;
|
|||||||
}
|
}
|
||||||
if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')";
|
if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')";
|
||||||
$where = substr($where,0,strlen($where)-1);
|
$where = substr($where,0,strlen($where)-1);
|
||||||
$where = "ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')";
|
$where = "`File`.ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')";
|
||||||
return $where;
|
return $where;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user