fixed: Child assets not indicated by plus sign in uncommited tags

This commit is contained in:
Graham Knop 2008-03-05 04:56:44 +00:00
parent ef83ebbcaf
commit 77b09dee37
2 changed files with 2 additions and 1 deletions

View file

@ -188,7 +188,7 @@ sub getChildCount {
my $self = shift;
my $opts = shift || {};
my $stateWhere = $opts->{includeTrash} ? '' : "asset.state='published' and";
my ($count) = $self->session->db->quickArray("select count(*) from asset, assetData where asset.assetId=assetData.assetId and $stateWhere parentId=? and assetData.status in ('approved', 'archived')", [$self->getId]);
my ($count) = $self->session->db->quickArray("select count(*) from asset, assetData where asset.assetId=assetData.assetId and $stateWhere parentId=? and (assetData.status in ('approved', 'archived') or assetData.tagId=?)", [$self->getId, $self->session->scratch->get('versionTag')]);
return $count;
}