mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00: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;
|
return $children;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
if ($page->getRelativeLink() == $this->Remaining[$level]) {
|
||||||
|
$page->LinkingMode = 'current';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user