Commit 8dd94c23786cb7fcd4c774ee9d797b339e739f89
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
Showing
1 changed file
with
2 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
| @@ -63,6 +63,8 @@ if (checkSession()) { | @@ -63,6 +63,8 @@ if (checkSession()) { | ||
| 63 | $oDocument = & PhysicalDocumentManager::createDocumentFromUploadedFile($_FILES['fFile'], $fFolderID); | 63 | $oDocument = & PhysicalDocumentManager::createDocumentFromUploadedFile($_FILES['fFile'], $fFolderID); |
| 64 | // set the document title | 64 | // set the document title |
| 65 | $oDocument->setName($fName); | 65 | $oDocument->setName($fName); |
| 66 | + // set the document type id | ||
| 67 | + $oDocument->setDocumentTypeID($fDocumentTypeID); | ||
| 66 | if (!(Document::documentExists($oDocument->getFileName(), $oDocument->getFolderID()))) { | 68 | if (!(Document::documentExists($oDocument->getFileName(), $oDocument->getFolderID()))) { |
| 67 | if ($oDocument->create()) { | 69 | if ($oDocument->create()) { |
| 68 | //if the document was successfully created in the db, then store it on the file system | 70 | //if the document was successfully created in the db, then store it on the file system |