From 13a375ea0c0ec0af28dde7354f917804e6e3cfbd Mon Sep 17 00:00:00 2001 From: Jalaloedien Date: Wed, 5 Dec 2007 10:46:43 +0000 Subject: [PATCH] KTC-277 "Tags associated to documents that have been deleted still show in the Tag Clouds dashlet." Fixed. Altered the dashlet query. --- plugins/tagcloud/TagCloudDashlet.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/tagcloud/TagCloudDashlet.php b/plugins/tagcloud/TagCloudDashlet.php index 4c768fd..08597cb 100644 --- a/plugins/tagcloud/TagCloudDashlet.php +++ b/plugins/tagcloud/TagCloudDashlet.php @@ -1,7 +1,7 @@ oUser, null); - $sql = " SELECT TW.tag, count(*) as freq FROM document_tags DT INNER JOIN tag_words TW ON DT.tag_id=TW.id - WHERE DT.document_id in (SELECT D.id FROM documents D $joins WHERE $where) GROUP BY TW.tag"; + WHERE DT.document_id in (SELECT D.id FROM documents D $joins WHERE $where AND D.status_id = '1') GROUP BY TW.tag"; $tags = DBUtil::getResultArray( array($sql,$params) -- libgit2 0.21.4