Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2020-09-18 19:24:59 +02:00
commit 52e336ea4b
2 changed files with 9 additions and 1 deletions

View File

@ -180,7 +180,7 @@
- removing a document version will not remove attachments of the document anymore
- make document details page like like view document page
- fix selection of documents/folders
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews]
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews|prePreviousVersionsTab|preLatestVersionTab]
--------------------------------------------------------------------------------
Changes in version 5.1.19

View File

@ -612,6 +612,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
exit;
}
$txt = $this->callHook('preLatestVersionTab', $latestContent);
if(is_string($txt))
echo $txt;
// verify if file exists
$file_exists=file_exists($dms->contentDir . $latestContent->getPath());
@ -1497,6 +1501,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
?>
<div class="tab-pane <?php if($currenttab == 'previous') echo 'active'; ?>" id="previous">
<?php
$txt = $this->callHook('prePreviousVersionsTab', $versions);
if(is_string($txt))
echo $txt;
$this->contentContainerStart();
print "<table class=\"table\">";