Commit 6416a5bad4202a123eb0224a27227ee5528b1549

Authored by Jalaloedien Abrahams
1 parent 8c8ed651

KTS-2093

"When clicking on a large "Tag Cloud", more than one page of document attached to it, you get an error."
Fixed. Added a fixed line on line 108

Committed By: Jalaloedien Abrahams
Reviewed By: Conrad Vermeulen

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7324 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/tagcloud/TagCloudDashlet.php
... ... @@ -127,7 +127,6 @@ class TagCloudDashlet extends KTBaseDashlet {
127 127 }
128 128 list($where, $params, $joins) = KTSearchUtil::permissionToSQL($this->oUser, null);
129 129  
130   -
131 130 $sql = "
132 131 SELECT
133 132 TW.tag, count(*) as freq
... ... @@ -135,7 +134,6 @@ class TagCloudDashlet extends KTBaseDashlet {
135 134 document_tags DT INNER JOIN tag_words TW ON DT.tag_id=TW.id
136 135 WHERE DT.document_id in (SELECT D.id FROM documents D $joins WHERE $where) GROUP BY TW.tag";
137 136  
138   -
139 137 $tags = DBUtil::getResultArray(
140 138 array($sql,$params)
141 139  
... ...
plugins/tagcloud/TagCloudRedirectPage.php
... ... @@ -103,7 +103,8 @@ class TagCloudRedirectPage extends KTStandardDispatcher {
103 103  
104 104 $aOptions = $collection->getEnvironOptions(); // extract data from the environment
105 105  
106   - $aOptions['return_url'] = KTUtil::addQueryString('dashboard.php', false);
  106 + //$aOptions['return_url'] = KTUtil::addQueryString('dashboard.php', false);
  107 + $aOptions['return_url'] = KTUtil::addQueryString('TagCloudRedirection&tag='. $searchable_text, false );
107 108 $aOptions['empty_message'] = _kt('No documents or folders match this query.');
108 109 $aOptions['is_browse'] = true;
109 110  
... ...