mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
12 lines
285 B
PHP
12 lines
285 B
PHP
|
<?php
|
||
|
|
||
|
class SubsiteAgnosticTableListField extends TableListField {
|
||
|
function getQuery() {
|
||
|
$oldState = Subsite::$disable_subsite_filter;
|
||
|
Subsite::$disable_subsite_filter = true;
|
||
|
$return = parent::getQuery();
|
||
|
Subsite::$disable_subsite_filter = $oldState;
|
||
|
return $return;
|
||
|
}
|
||
|
}
|