Don't call asset methods on undef in the GalleryAlbum. Fixes bug #11681.
This commit is contained in:
parent
40b8bd8667
commit
0efc6514e3
2 changed files with 3 additions and 2 deletions
|
|
@ -230,8 +230,9 @@ sub appendTemplateVarsFileLoop {
|
|||
my $assetIds = shift;
|
||||
my $session = $self->session;
|
||||
|
||||
for my $assetId (@$assetIds) {
|
||||
ASSET: for my $assetId (@$assetIds) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $assetId);
|
||||
next ASSET unless $asset;
|
||||
# Set the parent
|
||||
$asset->{_parent} = $self;
|
||||
push @{$var->{file_loop}}, $asset->getTemplateVars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue