Fixed a bug where isCurrentPost was not set correctly
This commit is contained in:
parent
014e40a005
commit
3b08bbf7af
3 changed files with 5 additions and 2 deletions
|
|
@ -8,6 +8,8 @@
|
||||||
- fix: Extra cruft in the Zip Archive template.
|
- fix: Extra cruft in the Zip Archive template.
|
||||||
- fix: fixed corner case in WebGUI::Operation::Workflow.pm which could cause the edit page to not load and display an error if an activity is undefined or cannot be defined.
|
- fix: fixed corner case in WebGUI::Operation::Workflow.pm which could cause the edit page to not load and display an error if an activity is undefined or cannot be defined.
|
||||||
- fix: testEnvironment.pl do not tests all modules (perlDreamer Consulting, LLC)
|
- fix: testEnvironment.pl do not tests all modules (perlDreamer Consulting, LLC)
|
||||||
|
- fix: Fixed a bug where the isCurrentPost tmpl_var would always be set to the
|
||||||
|
first post of the thread in stead of the current post. (Martin Kamerbeek / Oqapi)
|
||||||
|
|
||||||
|
|
||||||
7.3.5
|
7.3.5
|
||||||
|
|
|
||||||
|
|
@ -1261,7 +1261,7 @@ sub www_showConfirmation {
|
||||||
sub www_view {
|
sub www_view {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->incrementViews;
|
$self->incrementViews;
|
||||||
return $self->getThread->www_view;
|
return $self->getThread->www_view($self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1059,6 +1059,7 @@ Renders self->view based upon current style, subject to timeouts. Returns Privil
|
||||||
|
|
||||||
sub www_view {
|
sub www_view {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
my $currentPost = shift;
|
||||||
return $self->session->privilege->noAccess() unless $self->canView;
|
return $self->session->privilege->noAccess() unless $self->canView;
|
||||||
my $check = $self->checkView;
|
my $check = $self->checkView;
|
||||||
return $check if (defined $check);
|
return $check if (defined $check);
|
||||||
|
|
@ -1068,7 +1069,7 @@ sub www_view {
|
||||||
my $style = $self->getParent->processStyle("~~~");
|
my $style = $self->getParent->processStyle("~~~");
|
||||||
my ($head, $foot) = split("~~~",$style);
|
my ($head, $foot) = split("~~~",$style);
|
||||||
$self->session->output->print($head,1);
|
$self->session->output->print($head,1);
|
||||||
$self->session->output->print($self->view);
|
$self->session->output->print($self->view($currentPost));
|
||||||
$self->session->output->print($foot,1);
|
$self->session->output->print($foot,1);
|
||||||
return "chunked";
|
return "chunked";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue