diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php index 2e55308..c46306f 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php @@ -210,7 +210,7 @@ if ($oDocumentTransaction->create()) { //document and must be linked to that document if (isset($fDependantDocumentID)) { $oDependantDocument = DependantDocumentInstance::get($fDependantDocumentID); - $oDocumentLink = & new DocumentLink($oDependantDocument->getParentDocumentID(), $oDocument->getID()); + $oDocumentLink = & new DocumentLink($oDependantDocument->getParentDocumentID(), $oDocument->getID(), -1); // XXX: KT_LINK_DEPENDENT if ($oDocumentLink->create()) { //no longer a dependant document, but a linked document $oDependantDocument->delete();