Commit bfaeb0e9d49cdd7c0e26afd56c4c05653f4ecdd7

Authored by michael
1 parent 046b9c92

#3513 changed to list by thread instead of date


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2782 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
@@ -55,9 +55,10 @@ if (checkSession()) { @@ -55,9 +55,10 @@ if (checkSession()) {
55 $iNumMax = $oThread->getNumberOfReplies(); 55 $iNumMax = $oThread->getNumberOfReplies();
56 56
57 $sQuery = "SELECT 1 as ForView, subject, username, date, discussion_comments.id as com_id, discussion_threads.document_id as doc_id " . 57 $sQuery = "SELECT 1 as ForView, subject, username, date, discussion_comments.id as com_id, discussion_threads.document_id as doc_id " .
58 - "FROM (discussion_comments INNER JOIN users ON discussion_comments.user_id = users.id) INNER JOIN discussion_threads ON discussion_threads.id = discussion_comments.thread_id " . 58 + "FROM (discussion_comments INNER JOIN users ON discussion_comments.user_id = users.id) " .
  59 + "INNER JOIN discussion_threads ON discussion_threads.id = discussion_comments.thread_id " .
59 "WHERE discussion_threads.id = " . $iThreadID . 60 "WHERE discussion_threads.id = " . $iThreadID .
60 - " ORDER BY date DESC"; 61 + " ORDER BY discussion_comments.thread_id ASC";
61 62
62 $aColumns = array("subject", "username", "date"); 63 $aColumns = array("subject", "username", "date");
63 $aColumnNames = array("<font color=white>Subject </font>", "<font color=white>User</font>", "<font color=white>Date</font>"); 64 $aColumnNames = array("<font color=white>Subject </font>", "<font color=white>User</font>", "<font color=white>Date</font>");