preparing for 7.0.5 release

fixed some bugs
This commit is contained in:
JT Smith 2006-08-09 16:09:17 +00:00
parent 3000fccb79
commit dfe92a73e2
7 changed files with 97 additions and 20 deletions

View file

@ -1386,8 +1386,11 @@ sub new {
my $class = shift;
my $session = shift;
my $assetId = shift;
return undef unless ($assetId);
my $className = shift;
unless (defined $assetId) {
$session->errorHandler->error("Asset constructor new() requires an assetId.");
return undef;
}
my $assetRevision = $session->stow->get("assetRevision");
my $revisionDate = shift || $assetRevision->{$assetId}{$session->scratch->get("versionTag")||'_'};
unless ($revisionDate) {