Commit 100f50fb by Antti Tonkyra

fix inital menu build

1 parent b64c632f
......@@ -91,7 +91,8 @@ public class PrimeMenuView extends GenericCDIView {
{
menuModel = new DefaultMenuModel();
MenuNavigation selectedTop = layoutview.getSelectedTopmenu();
if(selectedTop == null) return null;
for (MenuNavigation m : selectedTop.getChildren()) {
if (m.getItem() != null && m.getChildren().isEmpty()) {
DefaultMenuItem menuitem = mkMenuitem(m);
......
......@@ -75,7 +75,8 @@ public class LayoutView {
{
selectedSet = new HashSet<>();
selectedTop = menubean.findNavigation(getPagepath());
if(selectedTop == null) return null;
while (selectedTop.getParent() != null) {
logger.info("Traversing to top {}, key {}", selectedTop, selectedTop.getKey());
selectedSet.add(selectedTop);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!