Bugfix: [ 1003594 ] Fixed Navigation Cacheing bug
This commit is contained in:
parent
33339679ad
commit
cad3de937e
2 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue