Commit ca10e4bae2233e6da0ff0f764a366fcf8bddd798
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
Showing
1 changed file
with
1 additions
and
1 deletions
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"; |