Commit 433ccb80db48a8025ada332825f3be98fa27e99d

Authored by michael
1 parent a68cb495

added error message for viewing a deleted document


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2102 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php
... ... @@ -269,6 +269,9 @@ if (checkSession()) {
269 269 // and ordinary users to request that the document be restored
270 270 $oPatternCustom->setHtml(getRequestRestoreDocumentPage($oDocument));
271 271 }
  272 + } else {
  273 + $oPatternCustom->setHtml("<a href=\"" . generateControllerLink("browse", "fFolderID=" . $oDocument->getFolderID()) . "\"><img src=\"$default->graphicsUrl/widgets/back.gif\" border=\"0\" /></a>\n");
  274 + $main->setErrorMessage("The document you have chosen no longer exists in the DMS.");
272 275 }
273 276 $main->setCentralPayload($oPatternCustom);
274 277 $main->setFormAction("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID());
... ...