fix for matrix test

This commit is contained in:
Graham Knop 2009-02-10 21:41:27 +00:00
parent b088299eb0
commit 7023683b48

View file

@ -930,18 +930,17 @@ sub www_getCompareFormData {
listing.views,
listing.compares,
listing.clicks,
listing.lastUpdated,
max(assetData.revisionDate)
listing.lastUpdated
from asset
left join assetData using(assetId)
left join MatrixListing as listing on listing.assetId = assetData.assetId and listing.revisionDate =
left join MatrixListing as listing on listing.assetId = assetData.assetId and listing.revisionDate =
assetData.revisionDate
where
asset.parentId=?
and asset.state='published'
and asset.className='WebGUI::Asset::MatrixListing'
and assetData.revisionDate = (SELECT max(revisionDate) from assetData where assetId=asset.assetId and status='approved')
and status='approved'
group by assetData.assetId
order by ".$sort.$sortDirection;
@results = @{ $session->db->buildArrayRefOfHashRefs($sql,[$self->getId]) };