fixed: Gallery: Description Text appearing in Album

This commit is contained in:
Yung Han Khoe 2008-07-12 17:37:49 +00:00
parent 052d9d67eb
commit 60bb354a78
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,7 @@
7.5.17
- fixed: Payment Methods Hover Help Incomplete
- fixed: Payment Method Titles Don't Match Buttons
- fixed: Gallery: Description Text appearing in Album
7.5.16
- Created a migration from 7.4.40 directly to 7.5.16.

View file

@ -492,7 +492,14 @@ sub getTemplateVars {
my $gallery = $self->getParent;
my $var = $self->get;
my $owner = WebGUI::User->new( $session, $self->get("ownerUserId") );
# Fix 'undef' vars since HTML::Template does inheritence on them
for my $key ( qw( description ) ) {
unless ( defined $var->{$key} ) {
$var->{ $key } = '';
}
}
# Permissions
$var->{ canAddFile } = $self->canAddFile;
$var->{ canEdit } = $self->canEdit;