Fix the pending flag, get a fresh copy of the photo asset under test.

This commit is contained in:
Colin Kuskie 2010-06-11 20:18:48 -07:00
parent 416c3737c6
commit dcdd671b2c
2 changed files with 3 additions and 6 deletions

View file

@ -524,10 +524,7 @@ sub getTemplateVars {
$var->{ fileUrl } = $self->getFileUrl;
$var->{ thumbnailUrl } = $self->getThumbnailUrl;
# Set a flag for pending files
if ( $self->status eq "pending" ) {
$var->{ 'isPending' } = 1;
}
$var->{ isPending } = $self->status eq "pending";
# Fix 'undef' vars since HTML::Template does inheritence on them
for my $key ( qw( synopsis ) ) {