From eadf2e89a86d9c47b7ad2f4904baecafc5c372d3 Mon Sep 17 00:00:00 2001 From: vnetonline Date: Thu, 29 Jun 2023 11:56:19 +1000 Subject: [PATCH] Fix HasChildren property not considering if page is not in navigation (i.e. hidden) --- Oqtane.Server/Controllers/SiteController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Controllers/SiteController.cs b/Oqtane.Server/Controllers/SiteController.cs index 99a64b32..ccf89e01 100644 --- a/Oqtane.Server/Controllers/SiteController.cs +++ b/Oqtane.Server/Controllers/SiteController.cs @@ -246,7 +246,7 @@ namespace Oqtane.Controllers foreach (Page child in children) { child.Level = level + 1; - child.HasChildren = pages.Any(item => item.ParentId == child.PageId && !item.IsDeleted); + child.HasChildren = pages.Any(item => item.ParentId == child.PageId && !item.IsDeleted && item.IsNavigation); hierarchy.Add(child); getPath(pageList, child); }