From 70812023530d4e4bb6359b467861278f43290890 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 14 Jan 2009 17:44:17 +0000 Subject: [PATCH] Mirror the indent loop calculation to the rel_depth in the Navigation. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Navigation.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 80c148183..cd33ee2e1 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,6 +3,7 @@ - marked sbin scripts as executable - fixed #9492: Problem in passing form variables to Macro SQL inside a snippet - fixed #9404: Head tags for admin user with admin mode off + - fixed #9507: Navigation: relDepth is calculated with starting point, instead of the first displayed page 7.6.8 - added #!/usr/bin/env perl to all utility scripts diff --git a/lib/WebGUI/Asset/Wobject/Navigation.pm b/lib/WebGUI/Asset/Wobject/Navigation.pm index a6878d761..d653538e1 100644 --- a/lib/WebGUI/Asset/Wobject/Navigation.pm +++ b/lib/WebGUI/Asset/Wobject/Navigation.pm @@ -439,7 +439,7 @@ sub view { # build nav variables $pageData->{"page.rank"} = $asset->getRank; $pageData->{"page.absDepth"} = $asset->getLineageLength; - $pageData->{"page.relDepth"} = $asset->getLineageLength - $start->getLineageLength; + $pageData->{"page.relDepth"} = $asset->getLineageLength - $absoluteDepthOfFirstPage; $pageData->{"page.isSystem"} = $asset->get("isSystem"); $pageData->{"page.isHidden"} = $asset->get("isHidden"); $pageData->{"page.isViewable"} = $asset->canView;