diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 1c48db12e..a949803bd 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -230,10 +230,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
contentHeading(getMLText("document_infos")); - if($document->isCheckedOut()) { + if($info = $document->getCheckOutInfo()) { echo "
"; $checkoutpath = sprintf($checkoutdir, preg_replace('/[^A-Za-z0-9_-]/', '', $user->getLogin())); - echo "getOriginalFileName())."\">".getMLText('copied_to_checkout_as', array('filename'=>$latestContent->getOriginalFileName())).""; + echo "".getMLText('copied_to_checkout_as', array('filename'=>substr($info['filename'], strlen($checkoutpath)+1))).""; echo "
"; } $this->contentContainerStart();