make sure preview for related document is created before showing

This commit is contained in:
Uwe Steinmann 2013-04-30 18:36:24 +02:00
parent a1f57d3e73
commit 29b5dd476a

View File

@ -961,6 +961,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$targetDoc = $link->getTarget();
$targetlc = $targetDoc->getLatestContent();
$previewer->createPreview($targetlc);
print "<tr>";
print "<td><a href=\"../op/op.Download.php?documentid=".$targetDoc->getID()."&version=".$targetlc->getVersion()."\">";
if($previewer->hasPreview($targetlc)) {