From 1460618ad46c99c71e9edd1443126ea2807049ab Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 15 Jan 2009 16:35:01 +0000 Subject: [PATCH] Forward port Shelf view fix. Was not displaying child shelves, only self. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Shelf.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 15cddc68c..47aa82ea1 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,7 @@ - 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 - fixed a bug where no Payment Gateway labels show up when checking out. + - fixed #9511: Subcategories displayed incorrectly 7.6.8 - added #!/usr/bin/env perl to all utility scripts diff --git a/lib/WebGUI/Asset/Wobject/Shelf.pm b/lib/WebGUI/Asset/Wobject/Shelf.pm index cac74a3ab..633025e69 100644 --- a/lib/WebGUI/Asset/Wobject/Shelf.pm +++ b/lib/WebGUI/Asset/Wobject/Shelf.pm @@ -277,7 +277,8 @@ sub view { my @childShelves = (); foreach my $child (@{$self->getLineage(['children'],{returnObjects=>1,includeOnlyClasses=>['WebGUI::Asset::Wobject::Shelf']})}) { my $properties = $child->get; - $child->{url} = $self->getUrl; + $child->{url} = $child->getUrl; + $child->{title} = $child->getTitle; push @childShelves, $child; }