Merged revisions 46776 via svnmerge from

svn://svn.silverstripe.com/silverstripe/modules/cms/branches/2.2.0-privacy

........
  r46776 | aoneil | 2007-12-14 09:49:36 +1300 (Fri, 14 Dec 2007) | 2 lines
  
  Fix ambiguous SQL
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46788 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-12-13 21:56:37 +00:00
parent 6f2bc927ee
commit 14d802454d

View File

@ -368,7 +368,7 @@ HTML;
$brokenPageList = '';
if($fileList != "''") {
$files = DataObject::get("File", "ID IN ($fileList)");
$files = DataObject::get("File", "`File`.ID IN ($fileList)");
if($files) {
foreach($files as $file) {
if($file instanceof Image) {