Loading...
 
Skip to main content

module forum_last_topics shows wrong forum name with rigth topics

Status
Pending
Subject
module forum_last_topics shows wrong forum name with rigth topics
Version
2.x
Category
  • Error
  • Patch
Feature
Modules
Resolution status
New
Submitted by
duebel
Lastmod by
duebel
Rating
(0)
Description
The module forum_last_topics mixes wrong forum names with rigth topic names.
Solution

tiki20/lib/rankings/ranklib.php 2008-02-27 16:19:12.000000000 +0100 +++ tiki_mod/lib/rankings/ranklib.php 2008-11-13 14:24:39.486289778 +0100

@@ -172,7 +172,7 @@
} else {
$query = "select a.*, tf.*, max(b.`commentDate`) as `lastPost` from
`tiki_comments` a left join `tiki_comments` b on b.`parentId`=a.`threadId` right join `tiki_forums` tf on "
- .$this->sql_cast("tf.`forumId`","string").

+ .$this->sql_cast("tf.`forumId`","string")." = a.`object`".

" where a.`objectType` = 'forum' and a.`parentId`=0 $mid group by a.`threadId` order by `lastPost` desc";
}

Priority
25
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
2148
Created
Thursday 13 November, 2008 13:28:01 UTC
by Unknown
LastModif
Thursday 13 November, 2008 13:28:01 UTC


Show PHP error messages