From 433ccb80db48a8025ada332825f3be98fa27e99d Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 9 Jun 2003 10:13:10 +0000 Subject: [PATCH] added error message for viewing a deleted document --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php index 1f9a355..990632e 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php @@ -269,6 +269,9 @@ if (checkSession()) { // and ordinary users to request that the document be restored $oPatternCustom->setHtml(getRequestRestoreDocumentPage($oDocument)); } + } else { + $oPatternCustom->setHtml("graphicsUrl/widgets/back.gif\" border=\"0\" />\n"); + $main->setErrorMessage("The document you have chosen no longer exists in the DMS."); } $main->setCentralPayload($oPatternCustom); $main->setFormAction("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID()); -- libgit2 0.21.4