Update README.md (#435)

Update README.md
This commit is contained in:
Guy Marriott 2019-07-08 12:19:26 +12:00 committed by GitHub
commit e73d622bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ To limit your admin gridfields to the current Subsite records, you can do someth
$gridField = $form->Fields()->fieldByName($this->sanitiseClassName($this->modelClass));
if(class_exists(Subsite::class)){
$list = $gridField->getList()->filter(['SubsiteID'=>Subsite::currentSubsiteID()]);
$list = $gridField->getList()->filter(['SubsiteID'=>SubsiteState::singleton()->getSubsiteId()]);
$gridField->setList($list);
}