mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-06-28 15:39:31 +02:00
Fixed subsite page selection when URL exists on SubsiteID = 0
This commit is contained in:
parent
538cfeda6a
commit
70ef6b0898
|
@ -52,7 +52,7 @@ class SiteTreeSubsites extends DataObjectDecorator {
|
|||
|
||||
// The foreach is an ugly way of getting the first key :-)
|
||||
foreach($query->from as $tableName => $info) {
|
||||
$query->where[] = "`$tableName`.SubsiteID IN (0, $subsiteID)";
|
||||
$query->where[] = "`$tableName`.SubsiteID IN ($subsiteID)";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user