Commit a5f331ba84f2e6130d944bdc763e04e197558ab3

Authored by Michael Joseph
1 parent 6b9e1062

show mosts recent document action first


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1933 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
@@ -34,7 +34,7 @@ function getDocumentHistory($iDocumentID) { @@ -34,7 +34,7 @@ function getDocumentHistory($iDocumentID) {
34 $sQuery = "SELECT DTT.name AS transaction_name, U.name AS user_name, DT.version AS version, DT.comment AS comment, DT.datetime AS datetime " . 34 $sQuery = "SELECT DTT.name AS transaction_name, U.name AS user_name, DT.version AS version, DT.comment AS comment, DT.datetime AS datetime " .
35 "FROM $default->owl_document_transactions_table AS DT INNER JOIN $default->owl_users_table AS U ON DT.user_id = U.id " . 35 "FROM $default->owl_document_transactions_table AS DT INNER JOIN $default->owl_users_table AS U ON DT.user_id = U.id " .
36 "INNER JOIN $default->owl_transaction_types_table AS DTT ON DTT.id = DT.transaction_id " . 36 "INNER JOIN $default->owl_transaction_types_table AS DTT ON DTT.id = DT.transaction_id " .
37 - "WHERE DT.document_id = $iDocumentID"; 37 + "WHERE DT.document_id = $iDocumentID ORDER BY DT.datetime DESC";
38 $sql = $default->db; 38 $sql = $default->db;
39 $sToRender = "<table cellpadding=\"5\" border=\"1\" width=\"90%\">\n"; 39 $sToRender = "<table cellpadding=\"5\" border=\"1\" width=\"90%\">\n";
40 $sToRender .= "<caption align=\"top\" colspan=\"5\" align=\"left\"><b>Transaction History</b></caption>\n"; 40 $sToRender .= "<caption align=\"top\" colspan=\"5\" align=\"left\"><b>Transaction History</b></caption>\n";