Mirror the indent loop calculation to the rel_depth in the Navigation.

This commit is contained in:
Colin Kuskie 2009-01-14 17:44:17 +00:00
parent 55d4c12ce1
commit 7081202353
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;