Commit 8afc8d3464ee496961c87358d9532f30ae392b52

Authored by michael
1 parent 856d2871

updated comments and logging


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2260 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php
@@ -89,6 +89,7 @@ if (checkSession()) { @@ -89,6 +89,7 @@ if (checkSession()) {
89 "folderName" => Folder::getFolderName($fFolderID))); 89 "folderName" => Folder::getFolderName($fFolderID)));
90 $default->log->info("addDocumentBL.php fired $count subscription alerts for new document " . $oDocument->getName()); 90 $default->log->info("addDocumentBL.php fired $count subscription alerts for new document " . $oDocument->getName());
91 91
  92 + // TODO: further meta-data processing
92 //redirect to the document view page 93 //redirect to the document view page
93 redirect("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID(). "&fFirstEdit=1"); 94 redirect("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID(). "&fFirstEdit=1");
94 } else { 95 } else {
@@ -101,7 +102,7 @@ if (checkSession()) { @@ -101,7 +102,7 @@ if (checkSession()) {
101 $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fForStore=1" . (isset($fDependantDocumentID) ? "&fDependantDocumentID=$fDependantDocumentID" : "")); 102 $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fForStore=1" . (isset($fDependantDocumentID) ? "&fDependantDocumentID=$fDependantDocumentID" : ""));
102 $main->setFormEncType("multipart/form-data"); 103 $main->setFormEncType("multipart/form-data");
103 $main->setErrorMessage("An error occured while storing the document on the file system"); 104 $main->setErrorMessage("An error occured while storing the document on the file system");
104 - $default->log->error("addDocumentBL.php Filesystem error attempting to store document " . $oDocument->getFileName() . " in folder " . Folder::getFolderPath($fFolderID) . " id=$fFolderID"); 105 + $default->log->error("addDocumentBL.php Filesystem error attempting to store document " . $oDocument->getFileName() . " in folder " . Folder::getFolderPath($fFolderID) . "; id=$fFolderID");
105 $main->render(); 106 $main->render();
106 } 107 }
107 } else { 108 } else {