From 7023683b48f8e68f0ed444dd45599782fc5c8055 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 10 Feb 2009 21:41:27 +0000 Subject: [PATCH] fix for matrix test --- lib/WebGUI/Asset/Wobject/Matrix.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Matrix.pm b/lib/WebGUI/Asset/Wobject/Matrix.pm index 856476f6f..2f749bede 100644 --- a/lib/WebGUI/Asset/Wobject/Matrix.pm +++ b/lib/WebGUI/Asset/Wobject/Matrix.pm @@ -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]) };