Commit b4998283d980a495c8abfb94b862f2f28b4011ec
1 parent
94b75d9c
"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
Showing
1 changed file
with
7 additions
and
3 deletions
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'); | ... | ... |