Commit a4c2ab980a83e54e873a0889654e1d5c27539a03
1 parent
223a81f7
Use a LEFT OUTER rather than an INNER join in case there is some problem
with the document type of a document (say, it's incompletely added and that will be set later). git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3576 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -52,7 +52,7 @@ function renderDocumentData($oDocument, $bEditable, $sStatusMessage = "") { |
| 52 | 52 | /*ok*/ $sQuery = array("SELECT D.id, D.name, D.modified, D.created, D.size, U.name AS initiator, D.metadata_version, CONCAT(CONCAT(D.major_version, '.'), D.minor_version) AS version, DTL.name AS document_type, D.is_checked_out, COALESCE(U2.name, '') AS c_user " . |
| 53 | 53 | "FROM $default->documents_table AS D " . |
| 54 | 54 | "LEFT JOIN $default->users_table AS U ON U.id = D.creator_id " . |
| 55 | - "INNER JOIN $default->document_types_table AS DTL ON DTL.id = D.document_type_id " . | |
| 55 | + "LEFT OUTER JOIN $default->document_types_table AS DTL ON DTL.id = D.document_type_id " . | |
| 56 | 56 | "LEFT OUTER JOIN $default->users_table AS U2 ON U2.id = D.checked_out_user_id " . |
| 57 | 57 | "WHERE D.id IN ($sWhere) ", $aDocuments); |
| 58 | 58 | ... | ... |