Commit abefe3472c3f4021dae2c81a8578eb8d2f29a900
1 parent
427992af
When adding a dependent document, use the dependent document link type
(-1). git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3398 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
| ... | ... | @@ -210,7 +210,7 @@ if ($oDocumentTransaction->create()) { |
| 210 | 210 | //document and must be linked to that document |
| 211 | 211 | if (isset($fDependantDocumentID)) { |
| 212 | 212 | $oDependantDocument = DependantDocumentInstance::get($fDependantDocumentID); |
| 213 | - $oDocumentLink = & new DocumentLink($oDependantDocument->getParentDocumentID(), $oDocument->getID()); | |
| 213 | + $oDocumentLink = & new DocumentLink($oDependantDocument->getParentDocumentID(), $oDocument->getID(), -1); // XXX: KT_LINK_DEPENDENT | |
| 214 | 214 | if ($oDocumentLink->create()) { |
| 215 | 215 | //no longer a dependant document, but a linked document |
| 216 | 216 | $oDependantDocument->delete(); | ... | ... |