Commit 55cb5e82 by Tuomas Riihimäki

.... Fu.. fix menu.

1 parent b2e4836a
......@@ -75,12 +75,16 @@ public class LayoutView {
{
selectedSet = new HashSet<>();
selectedTop = menubean.findNavigation(getPagepath());
while (selectedTop != null) {
while (selectedTop.getParent() != null) {
logger.info("Traversing to top {}, key {}", selectedTop, selectedTop.getKey());
selectedSet.add(selectedTop);
selectedTop = selectedTop.getParent();
}
selectedSet.add(selectedTop);
List<MenuNavigation> tops = menubean.getTopmenus();
if (!tops.contains(selectedTop) && !tops.isEmpty()) {
selectedTop = tops.get(0);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!