From abefe3472c3f4021dae2c81a8578eb8d2f29a900 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 12 Jul 2005 14:35:29 +0000 Subject: [PATCH] When adding a dependent document, use the dependent document link type (-1). --- presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- libgit2 0.21.4