fix a bug with the new assetDbProperties method. It used the wrong class

This commit is contained in:
Colin Kuskie 2007-07-01 05:15:53 +00:00
parent 8bd9f14a3f
commit c615268d94
2 changed files with 5 additions and 2 deletions

View file

@ -113,7 +113,7 @@ sub assetDbProperties {
my $sql = "select * from asset";
my $where = " where asset.assetId=?";
my $placeHolders = [$assetId];
foreach my $definition (@{$class->definition($session)}) {
foreach my $definition (@{$className->definition($session)}) {
$sql .= ",".$definition->{tableName};
$where .= " and (asset.assetId=".$definition->{tableName}.".assetId and ".$definition->{tableName}.".revisionDate=".$revisionDate.")";
}