Version: current

     1 <?php
     2
     3 class SubsiteAgnosticTableListField extends TableListField {
     4     function getQuery() {
     5         $oldState = Subsite::$disable_subsite_filter;
     6         Subsite::$disable_subsite_filter = true;
     7         $return = parent::getQuery();
     8         Subsite::$disable_subsite_filter = $oldState;
     9         return $return;
    10     }
    11 }
    12

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -