- add: Move revisions from one version tag to another

- add: Delete multiple revisions from a version tag at the same time
 - add: Approval activities now have a better parent class and more 
        flexibility (multiple groups to approve, do on approve)
 - fix: weirdness in upgrade file
This commit is contained in:
Doug Bell 2008-05-20 03:10:50 +00:00
parent ca9278190e
commit ab0b1b2200
10 changed files with 640 additions and 198 deletions

View file

@ -448,7 +448,8 @@ return undef.
sub getThumbnailUrl {
my $self = shift;
my $asset = undef;
# Try to get the asset
if ( $self->get("assetIdThumbnail") ) {
$asset = WebGUI::Asset->newByDynamicClass( $self->session, $self->get("assetIdThumbnail") );
}
@ -459,6 +460,13 @@ sub getThumbnailUrl {
return undef;
}
# It is possible to get here and still not have an asset in cases of
# "pending" assets, so just return
if ( !$asset ) {
return undef;
}
# Get the URL for the asset's thumbnail
if ( $asset->can("getThumbnailUrl") ) {
return $asset->getThumbnailUrl;
}