diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 62e116c14..22c75c907 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -20,6 +20,10 @@ - better HTML compliancy - fixed a lot of POD - fix - Changing rank ot the asset (Martin kamerbeek / Procolix) + - Fixed a bug where context menu links would take on the properties of the + page. + - Added a context menu to the last item in the crumb trail in the asset + manager as discussed in Community IRC. 6.99.1 - Bugfixes on dashboard to fix template errors. diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 66690a42e..c8cb6b127 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1077,9 +1077,25 @@ sub manageAssets { my $ancestors = $self->getLineage(["self","ancestors"],{returnObjects=>1}); my @crumbtrail; foreach my $ancestor (@{$ancestors}) { - push(@crumbtrail,''.$ancestor->getTitle.''); + if ($ancestor->getId eq $self->getId) { + my $title = $self->getTitle; + $title =~ s/\'/\\\'/g; + my $more = '\n"; + push(@crumbtrail,$more); + } else { + push(@crumbtrail,''.$ancestor->getTitle.''); + } } - my $output = '