silverstripe-subsites/code/SubsiteAgnosticTableListField.php
Tom Rix ca45089f54
2010-03-01 22:34:19 +00:00

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;
}
}