fixed [ 1315408 ] Navigation sometimes fails to use correct startpoint
This commit is contained in:
parent
6a7da04502
commit
4ff015bda0
2 changed files with 3 additions and 11 deletions
|
|
@ -317,17 +317,7 @@ sub view {
|
|||
$start = WebGUI::Asset->newByLineage(substr($current->get("lineage"),0, ($self->get("startPoint") + 1) * 6));
|
||||
}
|
||||
} elsif ($self->get("startType") eq "relativeToCurrentUrl") {
|
||||
if ($self->get("startPoint") < 0) {
|
||||
$start = WebGUI::Asset->newByLineage(substr($current->get("lineage"),0,
|
||||
($current->getLineageLength - $self->get("startPoint") + 1) * 6))
|
||||
if (($current->getLineageLength + $self->get("startPoint") + 1) * 6);
|
||||
} elsif ($self->get("startPoint") > 0) {
|
||||
my $lineage = $current->get("lineage");
|
||||
for (1..$self->get("startPoint")) {
|
||||
$lineage .= $self->formatRank($_);
|
||||
}
|
||||
$start = WebGUI::Asset->newByLineage($lineage);
|
||||
}
|
||||
$start = WebGUI::Asset->newByLineage(substr($current->get("lineage"),0, ($current->getLineageLength + $self->get("startPoint")) * 6));
|
||||
}
|
||||
$start = $current unless (defined $start); # if none of the above results in a start point, then the current page must be it
|
||||
my @includedRelationships = split("\n",$self->get("assetsToInclude"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue