Merge pull request #1933 from open-sausages/pulls/4.0/page-not-found-in-search-mode

FIX Remove entry points to tree in search mode
This commit is contained in:
Chris Joe 2017-08-28 11:48:58 +12:00 committed by GitHub
commit 380de0eb17

View File

@ -294,7 +294,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
public function LinkTreeView()
{
// Tree view is just default link to main pages section (no /treeview suffix)
return $this->LinkWithSearch(CMSMain::singleton()->Link());
return CMSMain::singleton()->Link();
}
/**
@ -1451,6 +1451,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
);
}
$gridField = new GridField('Page', 'Pages', $list, $gridFieldConfig);
$gridField->setAttribute('cms-loading-ignore-url-params', true);
/** @var GridFieldDataColumns $columns */
$columns = $gridField->getConfig()->getComponentByType('SilverStripe\\Forms\\GridField\\GridFieldDataColumns');