diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
index d97ea04..e32dbb0 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -210,6 +210,7 @@ function getEditPage($oDocument) {
function getViewPage($oDocument) {
global $default;
+ $iDocumentID = $oDocument->getID();
$sToRender = renderDocumentPath($oDocument) . "\n
\n";
$sToRender .= "