fixed: Thumbnails page now displays even if no files in Album
This commit is contained in:
parent
5166512f32
commit
828930d193
1 changed files with 6 additions and 3 deletions
|
|
@ -848,9 +848,12 @@ sub view_thumbnails {
|
|||
if (!$asset) {
|
||||
$asset = $self->getFirstChild;
|
||||
}
|
||||
my %assetVars = %{ $asset->getTemplateVars };
|
||||
for my $key ( keys %assetVars ) {
|
||||
$var->{ 'file_' . $key } = $assetVars{ $key };
|
||||
|
||||
if ( $asset ) {
|
||||
my %assetVars = %{ $asset->getTemplateVars };
|
||||
for my $key ( keys %assetVars ) {
|
||||
$var->{ 'file_' . $key } = $assetVars{ $key };
|
||||
}
|
||||
}
|
||||
|
||||
return $self->processTemplate($var, $self->getParent->get("templateIdViewThumbnails"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue