diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index e992cbbfb..1b8e24795 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1887,6 +1887,10 @@ $(document).ready( function() { $links = $document->getDocumentLinks(); $links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links); + /* Retrieve reverse linked documents */ + $revlinks = $document->getReverseDocumentLinks(); + $revlinks = SeedDMS_Core_DMS::filterDocumentLinks($user, $revlinks); + $content .= ""; if (file_exists($dms->contentDir . $latestContent->getPath())) { $content .= ""; @@ -1921,8 +1925,8 @@ $(document).ready( function() { $content .= ""; if(count($files)) $content .= count($files)." ".getMLText("linked_files")."
"; - if(count($links)) - $content .= count($links)." ".getMLText("linked_documents")."
"; + if(count($links) || count($revlinks)) + $content .= count($links)."/".count($revlinks)." ".getMLText("linked_documents")."
"; if($status["status"] == S_IN_WORKFLOW && $workflowmode == 'advanced') { $workflowstate = $latestContent->getWorkflowState(); $content .= 'getName().'">'.$workflowstate->getName().'';