silverstripe-subsites/code/forms/SubsiteAgnosticTableListField.php

12 lines
285 B
PHP
Raw Normal View History

2010-03-01 23:34:19 +01:00
<?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;
}
}