diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php index b18ee13..b0a62e5 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php @@ -36,7 +36,7 @@ if (checkSession()) { $oDocument = Document::get($fDocumentID); if ($oDocument) { // change the document status to archived - $oDocument->setStatusID(lookupStatusID("Archived")); + $oDocument->setStatusID(ARCHIVED); if ($oDocument->update()) { $default->log->info("archiveDocumentBL.php successfully archived document id $fDocumentID"); diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php index 353f879..cb015b6 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php @@ -47,7 +47,7 @@ if (checkSession()) { $oDocumentTransaction = & new DocumentTransaction($fDocumentID, "Document deleted", DELETE); $oDocumentTransaction->create(); // flip the status id - $oDocument->setStatusID(lookupStatusID("Deleted")); + $oDocument->setStatusID(DELETED); // store if ($oDocument->update()) { // now move the document to the delete folder