fix: No current asset when ending up on Not Found page
This commit is contained in:
parent
7627174884
commit
29045734e5
4 changed files with 5 additions and 3 deletions
|
|
@ -194,7 +194,7 @@ sub purge {
|
|||
|
||||
# clean up version tag if empty
|
||||
my $versionTag = WebGUI::VersionTag->new($session, $tagId);
|
||||
if ($versionTag->getAssetCount == 0) {
|
||||
if ($versionTag && $versionTag->getAssetCount == 0) {
|
||||
$versionTag->rollback;
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ sub handler {
|
|||
my $output = "";
|
||||
my $notFound = WebGUI::Asset->getNotFound($session);
|
||||
if (defined $notFound) {
|
||||
$output = eval { $notFound->www_view };
|
||||
$session->asset($notFound);
|
||||
$output = eval { $notFound->www_view };
|
||||
}
|
||||
else {
|
||||
$session->errorHandler->error("The notFound page could not be instanciated!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue