Commit ca10e4bae2233e6da0ff0f764a366fcf8bddd798

Authored by michael
1 parent 1a705cdc

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 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 35 "FROM $default->owl_document_transactions_table AS DT INNER JOIN $default->owl_users_table AS U ON DT.user_id = U.id " .
36 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 38 $sql = $default->db;
39 39 $sToRender = "<table cellpadding=\"5\" border=\"1\" width=\"90%\">\n";
40 40 $sToRender .= "<caption align=\"top\" colspan=\"5\" align=\"left\"><b>Transaction History</b></caption>\n";
... ...