fix error in download link

This commit is contained in:
Uwe Steinmann 2020-04-24 09:43:30 +02:00
parent b20b8c6f5f
commit d0b9df62d6

View File

@ -1535,7 +1535,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
} }
} else { } else {
if($accessobject->check_controller_access('Download', array('action'=>'version'))) { if($accessobject->check_controller_access('Download', array('action'=>'version'))) {
print "<a href=\"../op/op.Download.php?documentid=".$version->getDocument()."&version=".$version->getVersion()."\">"; print "<a href=\"../op/op.Download.php?documentid=".$version->getDocument()->getId()."&version=".$version->getVersion()."\">";
} }
} }
} }