- Added better error handling for asset instanciation in version tags.
This commit is contained in:
parent
a8c8568d36
commit
fc2086e10a
2 changed files with 7 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- fix: Trouble with Search Users (perlDreamer Consulting, LLC)
|
||||
http://www.plainblack.com/bugs/tracker/trouble-with-search-users
|
||||
- fix: Fixed an unhandled exception in Workflow/Activity/PurgeOldAssetRevisions.pm
|
||||
- Added better error handling for asset instanciation in version tags.
|
||||
|
||||
|
||||
7.3.14
|
||||
|
|
|
|||
|
|
@ -191,7 +191,12 @@ sub getAssets {
|
|||
}
|
||||
my $sth = $self->session->db->read("select asset.assetId,asset.className,assetData.revisionDate from assetData left join asset on asset.assetId=assetData.assetId where assetData.tagId=? ".$pending." order by ".$sort." ".$direction, [$self->getId]);
|
||||
while (my ($id,$class,$version) = $sth->array) {
|
||||
push(@assets, WebGUI::Asset->new($self->session,$id,$class,$version));
|
||||
my $asset = WebGUI::Asset->new($self->session,$id,$class,$version);
|
||||
unless (defined $asset) {
|
||||
$self->session->errorHandler->error("Asset $id $class $version could not be instanciated by version tag ".$self->getId.". Perhaps it is corrupt.");
|
||||
next;
|
||||
}
|
||||
push(@assets, $asset);
|
||||
}
|
||||
return \@assets;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue