Commit 433ccb80db48a8025ada332825f3be98fa27e99d
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
Showing
1 changed file
with
3 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php
| @@ -269,6 +269,9 @@ if (checkSession()) { | @@ -269,6 +269,9 @@ if (checkSession()) { | ||
| 269 | // and ordinary users to request that the document be restored | 269 | // and ordinary users to request that the document be restored |
| 270 | $oPatternCustom->setHtml(getRequestRestoreDocumentPage($oDocument)); | 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 | $main->setCentralPayload($oPatternCustom); | 276 | $main->setCentralPayload($oPatternCustom); |
| 274 | $main->setFormAction("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID()); | 277 | $main->setFormAction("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID()); |