Commit 1c28813a57b14c4296797b73d5343ba88c23ebc2

Authored by Conrad Vermeulen
1 parent eb4f12e0

"KTS-2077"

"Unit test failing for tagcloud triggers"
Fixed. Checked that the arrays are correct.

Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6728 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/tagcloud/TagCloudPlugin.php
... ... @@ -229,9 +229,11 @@ class KTAddDocumentTrigger {
229 229 {
230 230  
231 231 $oProxy = $aMetaData[0];
232   - if($oProxy->iId == $sTags){
  232 + if($oProxy->iId == $sTags)
  233 + {
233 234 $tagString = $aMetaData[1];
234 235 }
  236 + }
235 237 }
236 238 if($tagString != ''){
237 239 $words_table = KTUtil::getTableName('tag_words');
... ... @@ -343,10 +345,12 @@ class KTEditDocumentTrigger {
343 345 foreach($aMeta as $aMetaData)
344 346 {
345 347 $oProxy = $aMetaData[0];
346   - if($oProxy->iId == $sTags){
  348 + if($oProxy->iId == $sTags)
  349 + {
347 350 $tagString = $aMetaData[1];
348 351 break;
349   - }
  352 + }
  353 + }
350 354 }
351 355 if($tagString != ''){
352 356 $words_table = KTUtil::getTableName('tag_words');
... ...