diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f7866000c..e49853cf3 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.4.10 - fix: Graphs aren't sized properly using GraphicsMagick + - fix: Navigation with pedigree on site with multiple roots (Yung Han Khoe, United Knowledge) 7.4.9 - fix: Bug that did not allow Calendar Update Feeds workflow activity to diff --git a/lib/WebGUI/AssetLineage.pm b/lib/WebGUI/AssetLineage.pm index d094cd2d8..438109c42 100644 --- a/lib/WebGUI/AssetLineage.pm +++ b/lib/WebGUI/AssetLineage.pm @@ -362,7 +362,7 @@ sub getLineage { push(@whereModifiers,"(asset.parentId=".$self->session->db->quote($self->getId).")"); } # now lets add in all of the siblings in every level between ourself and the asset we wish to pedigree - if (isIn("pedigree",@{$relatives}) && exists $rules->{assetToPedigree}) { + if (isIn("pedigree",@{$relatives}) && exists $rules->{assetToPedigree} && substr($rules->{assetToPedigree}->get("lineage"),0,length($lineage)) eq $lineage) { my @mods; my $lineage = $rules->{assetToPedigree}->get("lineage"); my $length = $rules->{assetToPedigree}->getLineageLength;