From b10466a0da8f29eb89c84ea71cb2779de49eb651 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 7 Nov 2007 06:35:55 +0000 Subject: [PATCH] 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 --- code/AssetAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 72de1f42..dd5b946c 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -746,7 +746,7 @@ JS; } if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')"; $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; }