From 8dd94c23786cb7fcd4c774ee9d797b339e739f89 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Tue, 2 Sep 2003 15:33:57 +0000 Subject: [PATCH] (#2972) added missing documentTypeID assignment! --- presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php index 5565171..a638ec2 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php @@ -63,6 +63,8 @@ if (checkSession()) { $oDocument = & PhysicalDocumentManager::createDocumentFromUploadedFile($_FILES['fFile'], $fFolderID); // set the document title $oDocument->setName($fName); + // set the document type id + $oDocument->setDocumentTypeID($fDocumentTypeID); if (!(Document::documentExists($oDocument->getFileName(), $oDocument->getFolderID()))) { if ($oDocument->create()) { //if the document was successfully created in the db, then store it on the file system -- libgit2 0.21.4