fix: Closed Posts Displaying in CS

This commit is contained in:
JT Smith 2007-01-05 15:52:25 +00:00
parent f4b6d944b6
commit a0a055296b
4 changed files with 7 additions and 9 deletions

View file

@ -1090,14 +1090,15 @@ sub view {
and asset.state='published'
and asset.className='WebGUI::Asset::Post::Thread'
and assetData.revisionDate=(
SELECT
select
max(revisionDate)
from
assetData
where
assetData.assetId=asset.assetId
and (status='approved' or tagId=".$self->session->db->quote($self->session->scratch->get("versionTag")).")
)
and (status='approved' or status='archived')
)
and status='approved'
group by
assetData.assetId
order by