Commit 26a0826253a9d9092fad5f8d69239844cda42a83

Authored by michael
1 parent 486e2014

now using document status constants


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2124 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
... ... @@ -36,7 +36,7 @@ if (checkSession()) {
36 36 $oDocument = Document::get($fDocumentID);
37 37 if ($oDocument) {
38 38 // change the document status to archived
39   - $oDocument->setStatusID(lookupStatusID("Archived"));
  39 + $oDocument->setStatusID(ARCHIVED);
40 40  
41 41 if ($oDocument->update()) {
42 42 $default->log->info("archiveDocumentBL.php successfully archived document id $fDocumentID");
... ...
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php
... ... @@ -47,7 +47,7 @@ if (checkSession()) {
47 47 $oDocumentTransaction = & new DocumentTransaction($fDocumentID, "Document deleted", DELETE);
48 48 $oDocumentTransaction->create();
49 49 // flip the status id
50   - $oDocument->setStatusID(lookupStatusID("Deleted"));
  50 + $oDocument->setStatusID(DELETED);
51 51 // store
52 52 if ($oDocument->update()) {
53 53 // now move the document to the delete folder
... ...