mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge branch '2.3' into 2
This commit is contained in:
commit
212790ae29
@ -312,7 +312,7 @@ class Subsite extends DataObject
|
|||||||
|
|
||||||
$subsiteID = $subsiteIDs[0];
|
$subsiteID = $subsiteIDs[0];
|
||||||
} else {
|
} else {
|
||||||
if ($default = DataObject::get_one(Subsite::class, '"DefaultSite" = 1')) {
|
if ($default = Subsite::get()->filter('DefaultSite', 1)->setQueriedColumns(['ID'])->first()) {
|
||||||
// Check for a 'default' subsite
|
// Check for a 'default' subsite
|
||||||
$subsiteID = $default->ID;
|
$subsiteID = $default->ID;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user