mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +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 :-)
|
// The foreach is an ugly way of getting the first key :-)
|
||||||
foreach($query->from as $tableName => $info) {
|
foreach($query->from as $tableName => $info) {
|
||||||
$query->where[] = "`$tableName`.SubsiteID IN (0, $subsiteID)";
|
$query->where[] = "`$tableName`.SubsiteID IN ($subsiteID)";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user