mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Fix: missing 'current' linking mode in top-level menu
If there are no children, the LinkingMode was set to 'link' and never to 'current'
This commit is contained in:
parent
67ff61a756
commit
27a4f91d70
@ -546,7 +546,10 @@ class DocumentationViewer extends Controller {
|
||||
|
||||
return $children;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($page->getRelativeLink() == $this->Remaining[$level]) {
|
||||
$page->LinkingMode = 'current';
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user