From 29b5dd476ac32303baaf83c0431711f91ed100b1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 30 Apr 2013 18:36:24 +0200 Subject: [PATCH] make sure preview for related document is created before showing --- views/bootstrap/class.ViewDocument.php | 1 + 1 file changed, 1 insertion(+) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 72cf93968..1cf5ce7b0 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -961,6 +961,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $targetDoc = $link->getTarget(); $targetlc = $targetDoc->getLatestContent(); + $previewer->createPreview($targetlc); print ""; print "getID()."&version=".$targetlc->getVersion()."\">"; if($previewer->hasPreview($targetlc)) {