- Converted all the max((assetData.)revisionDate) calls to use mysql5/(4.1)

nested queries.
 - fix [ 1323184 ] CS Submissions Not Sorting on multiple sites
 - fixed some major oversights in the new profile system.
This commit is contained in:
Matthew Wilson 2005-12-12 10:34:39 +00:00
parent d8cea7a566
commit f5f73c1681
16 changed files with 61 additions and 42 deletions

View file

@ -64,7 +64,7 @@ sub getAssetsInTrash {
my $sth = WebGUI::SQL->read("
select
asset.assetId,
max(assetData.revisionDate),
assetData.revisionDate,
asset.className
from
asset
@ -72,6 +72,7 @@ sub getAssetsInTrash {
assetData on asset.assetId=assetData.assetId
where
asset.state='trash'
and assetData.revisionDate=(SELECT max(revisionDate) from assetData where assetData.assetId=asset.assetId)
$limit
group by
assetData.assetId