mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 06:31:21 +00:00
do not run documentListRow(Start|End) if lastContent is null
This commit is contained in:
parent
babba864a1
commit
dabf821b6a
|
@ -2477,9 +2477,6 @@ $('body').on('click', '[id^=\"table-row-document\"] td:nth-child(2)', function(e
|
|||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||
$docID = $document->getID();
|
||||
|
||||
if(!$skipcont)
|
||||
$content .= $this->documentListRowStart($document);
|
||||
|
||||
if($version) {
|
||||
$latestContent = $this->callHook('documentContent', $document, $version);
|
||||
if($latestContent === null)
|
||||
|
@ -2491,6 +2488,9 @@ $('body').on('click', '[id^=\"table-row-document\"] td:nth-child(2)', function(e
|
|||
}
|
||||
|
||||
if($latestContent) {
|
||||
if(!$skipcont)
|
||||
$content .= $this->documentListRowStart($document);
|
||||
|
||||
$previewer->createPreview($latestContent);
|
||||
$version = $latestContent->getVersion();
|
||||
$status = $latestContent->getStatus();
|
||||
|
@ -2610,9 +2610,9 @@ $('body').on('click', '[id^=\"table-row-document\"] td:nth-child(2)', function(e
|
|||
}
|
||||
$content .= "</div>";
|
||||
$content .= "</td>";
|
||||
if(!$skipcont)
|
||||
$content .= $this->documentListRowEnd($document);
|
||||
}
|
||||
if(!$skipcont)
|
||||
$content .= $this->documentListRowEnd($document);
|
||||
return $content;
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user