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
|
|
@ -12,7 +12,7 @@
|
|||
- fixed #11678: Story Archive leaks version tags
|
||||
- fixed #11671: Approving version tags takes up 1 to hour to take affect.
|
||||
- fixed #11663: More detail section of image gallery
|
||||
|
||||
- fixed #11681: Gallery album chokes on photo w/ missing properties
|
||||
|
||||
7.9.7
|
||||
- added #11571: Allow return from photo edit view to gallery edit view
|
||||
|
|
|
|||
|
|
@ -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