mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
commit
380de0eb17
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user