Bugfix: [ 1003594 ] Fixed Navigation Cacheing bug

This commit is contained in:
Len Kranendonk 2004-08-07 11:40:48 +00:00
parent 33339679ad
commit cad3de937e
2 changed files with 7 additions and 7 deletions

View file

@ -26,6 +26,7 @@
- Added Export Page functionality.
- bugfix: Loginbox didn't support encrypt login.
- Bugfix: [ 1000205 ] Password Recovery Doesn't Work
- Bugfix: [ 1003594 ] Fixed Navigation Cacheing bug
6.1.1
- bugfix [ 991313 ] Manage Translations doesn't work

View file

@ -228,19 +228,18 @@ sub build {
my (@page_loop, $lastPage, %unfolded);
tie %unfolded, "Tie::IxHash";
# Store current page properties in template var
my $currentPage = WebGUI::Page->getPage();
foreach my $property (@interestingPageProperties) {
$var->{'page.current.'.$property} = $currentPage->get($property);
}
unless (defined $cacheContent && ! $session{var}{altSiteURL}) {
# The loop was not cached
my @pages = eval $method;
if ($@) {
WebGUI::ErrorHandler::warn("Error in WebGUI::Navigation::build while trying to execute $method".$@);
}
# Store current page properties in template var
my $currentPage = WebGUI::Page->getPage();
foreach my $property (@interestingPageProperties) {
$var->{'page.current.'.$property} = $currentPage->get($property);
}
if (@pages) {
my $startPageDepth = ($p->ancestors);
my $maxDepth = $startPageDepth + $self->{_depth};