Throw an exception in all wobjects if the main template (used by view)
has been deleted.
This commit is contained in:
parent
62b776d55a
commit
80dfb9ffd0
36 changed files with 350 additions and 97 deletions
|
|
@ -1001,6 +1001,13 @@ sub prepareViewListAlbums {
|
|||
my $self = shift;
|
||||
my $template
|
||||
= WebGUI::Asset::Template->new($self->session, $self->get("templateIdListAlbums"));
|
||||
if (!$template) {
|
||||
WebGUI::Error::ObjectNotFound::Template->throw(
|
||||
error => qq{Template not found},
|
||||
templateId => $self->get("templateIdListAlbums"),
|
||||
assetId => $self->getId,
|
||||
);
|
||||
}
|
||||
$template->prepare($self->getMetaDataAsTemplateVariables);
|
||||
$self->{_viewTemplate} = $template;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue