- 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

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