Commit 8dd94c23786cb7fcd4c774ee9d797b339e739f89

Authored by Michael Joseph
1 parent 662896a0

(#2972) added missing documentTypeID assignment!


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2675 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
... ... @@ -63,6 +63,8 @@ if (checkSession()) {
63 63 $oDocument = & PhysicalDocumentManager::createDocumentFromUploadedFile($_FILES['fFile'], $fFolderID);
64 64 // set the document title
65 65 $oDocument->setName($fName);
  66 + // set the document type id
  67 + $oDocument->setDocumentTypeID($fDocumentTypeID);
66 68 if (!(Document::documentExists($oDocument->getFileName(), $oDocument->getFolderID()))) {
67 69 if ($oDocument->create()) {
68 70 //if the document was successfully created in the db, then store it on the file system
... ...