initialize keyword field in GalleryFile.pm because get fills it in now due to a recent code change

This commit is contained in:
David Delikat 2009-02-03 16:43:47 +00:00
parent 99d6796675
commit 621a0cf71b
2 changed files with 2 additions and 0 deletions

View file

@ -777,6 +777,7 @@ sub view {
# Keywords
my $k = WebGUI::Keyword->new( $session );
my $keywords = $k->getKeywordsForAsset( { asArrayRef => 1, asset => $self } );
$var->{keywords} = [ ];
for my $keyword ( @{ $keywords } ) {
push @{ $var->{keywords} }, {
keyword => $keyword,