diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index 061b401b2..124499bdd 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -1535,7 +1535,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
} else {
if($accessobject->check_controller_access('Download', array('action'=>'version'))) {
- print "getDocument()."&version=".$version->getVersion()."\">";
+ print "getDocument()->getId()."&version=".$version->getVersion()."\">";
}
}
}