Fixed bug with deleting in CMS

This commit is contained in:
Sam Minnee 2007-11-06 03:06:02 +00:00
parent c301044be9
commit 956e2402df

View File

@ -54,6 +54,8 @@ class SiteTreeSubsites extends DataObjectDecorator {
// The foreach is an ugly way of getting the first key :-)
foreach($query->from as $tableName => $info) {
// The tableName should be SiteTree or SiteTree_Live...
if(strpos($tableName,'SiteTree') === false) break;
$query->where[] = "`$tableName`.SubsiteID IN ($subsiteID)";
break;
}