Commit 26a0826253a9d9092fad5f8d69239844cda42a83
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
Showing
2 changed files
with
2 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveDocumentBL.php
| @@ -36,7 +36,7 @@ if (checkSession()) { | @@ -36,7 +36,7 @@ if (checkSession()) { | ||
| 36 | $oDocument = Document::get($fDocumentID); | 36 | $oDocument = Document::get($fDocumentID); |
| 37 | if ($oDocument) { | 37 | if ($oDocument) { |
| 38 | // change the document status to archived | 38 | // change the document status to archived |
| 39 | - $oDocument->setStatusID(lookupStatusID("Archived")); | 39 | + $oDocument->setStatusID(ARCHIVED); |
| 40 | 40 | ||
| 41 | if ($oDocument->update()) { | 41 | if ($oDocument->update()) { |
| 42 | $default->log->info("archiveDocumentBL.php successfully archived document id $fDocumentID"); | 42 | $default->log->info("archiveDocumentBL.php successfully archived document id $fDocumentID"); |
presentation/lookAndFeel/knowledgeTree/documentmanagement/deleteDocumentBL.php
| @@ -47,7 +47,7 @@ if (checkSession()) { | @@ -47,7 +47,7 @@ if (checkSession()) { | ||
| 47 | $oDocumentTransaction = & new DocumentTransaction($fDocumentID, "Document deleted", DELETE); | 47 | $oDocumentTransaction = & new DocumentTransaction($fDocumentID, "Document deleted", DELETE); |
| 48 | $oDocumentTransaction->create(); | 48 | $oDocumentTransaction->create(); |
| 49 | // flip the status id | 49 | // flip the status id |
| 50 | - $oDocument->setStatusID(lookupStatusID("Deleted")); | 50 | + $oDocument->setStatusID(DELETED); |
| 51 | // store | 51 | // store |
| 52 | if ($oDocument->update()) { | 52 | if ($oDocument->update()) { |
| 53 | // now move the document to the delete folder | 53 | // now move the document to the delete folder |