Commit a0d89143f223e06bded36717585fb50b78a57dee
1 parent
142528a8
Added extra query string variables to links in linked documents table
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1894 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -59,15 +59,15 @@ function renderDocumentData($oDocument) { |
| 59 | 59 | function renderEditableLinkedDocuments($oDocument) { |
| 60 | 60 | global $default; |
| 61 | 61 | |
| 62 | - $sQuery = "SELECT D.id AS document_id, D.name, DL.id as document_link_id, 'Unlink' AS unlink " . | |
| 62 | + $sQuery = "SELECT D.id AS child_document_id, D.name, DL.id as document_link_id, DL.parent_document_id AS parent_document_id, 'Unlink' AS unlink " . | |
| 63 | 63 | "FROM documents AS D INNER JOIN document_link AS DL ON D.id = DL.child_document_id " . |
| 64 | 64 | "WHERE DL.parent_document_id = " . $oDocument->getID(); |
| 65 | 65 | |
| 66 | 66 | $aColumns = array("name", "unlink"); |
| 67 | 67 | $aColumnHeaders = array("Document"); |
| 68 | 68 | $aColumnTypes = array(3,3); |
| 69 | - $aDBColumnArray = array("document_id","document_link_id"); | |
| 70 | - $aQueryStringVariableNames = array("fDocumentID", "fDocumentLinkID"); | |
| 69 | + $aDBColumnArray = array("parent_document_id", "child_document_id","document_link_id"); | |
| 70 | + $aQueryStringVariableNames = array("fParentDocumentID","fChildDocumentID", "fDocumentLinkID"); | |
| 71 | 71 | $aLinkURLs = array(0=>"$default->rootUrl/control.php?action=viewDocument", 1=>"$default->rootUrl/control.php?action=removeDocumentLink"); |
| 72 | 72 | |
| 73 | 73 | $oPatternTableSqlQuery = & new PatternTableSqlQuery($sQuery, $aColumns, $aColumnTypes, $aColumnHeaders, "100%", $aLinkURLs,$aDBColumnArray,$aQueryStringVariableNames); | ... | ... |