- 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:
parent
ca9278190e
commit
ab0b1b2200
10 changed files with 640 additions and 198 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue