fix: getLineageLength called on undef in case no pages are in the nav loop
This commit is contained in:
parent
5603871713
commit
8263e0a0c6
1 changed files with 7 additions and 1 deletions
|
|
@ -401,7 +401,13 @@ sub view {
|
||||||
my $currentLineage = $current->get("lineage");
|
my $currentLineage = $current->get("lineage");
|
||||||
my $lineageToSkip = "noskip";
|
my $lineageToSkip = "noskip";
|
||||||
my $absoluteDepthOfLastPage;
|
my $absoluteDepthOfLastPage;
|
||||||
my $absoluteDepthOfFirstPage = $assets->[0]->getLineageLength;
|
|
||||||
|
# Get the lineage 'depth' of the first asset if there are any assets at all
|
||||||
|
my $absoluteDepthOfFirstPage = exists $assets->[0]
|
||||||
|
? $assets->[0]->getLineageLength
|
||||||
|
: 0
|
||||||
|
;
|
||||||
|
|
||||||
my %lastChildren;
|
my %lastChildren;
|
||||||
my $previousPageData = undef;
|
my $previousPageData = undef;
|
||||||
my $eh = $self->session->errorHandler;
|
my $eh = $self->session->errorHandler;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue