mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-07 10:31:00 +00:00
fix list of related documents when hook documentListItem() is implemented
This commit is contained in:
parent
cf2bb2b4c3
commit
ee50953d11
|
@ -1608,7 +1608,6 @@ $(document).ready( function() {
|
|||
$responsibleUser = $link->getUser();
|
||||
$targetDoc = $link->getTarget();
|
||||
|
||||
echo $this->documentListRowStart($targetDoc);
|
||||
$targetDoc->verifyLastestContentExpriry();
|
||||
$txt = $this->callHook('documentListItem', $targetDoc, $previewer, false, 'reverselinks');
|
||||
if(is_string($txt))
|
||||
|
@ -1616,6 +1615,7 @@ $(document).ready( function() {
|
|||
else {
|
||||
$extracontent = array();
|
||||
$extracontent['below_title'] = $this->getListRowPath($targetDoc);
|
||||
echo $this->documentListRowStart($targetDoc);
|
||||
echo $this->documentListRow($targetDoc, $previewer, true, 0, $extracontent);
|
||||
}
|
||||
print "<td><span class=\"actions\">";
|
||||
|
@ -1676,7 +1676,6 @@ $(document).ready( function() {
|
|||
$responsibleUser = $link->getUser();
|
||||
$sourceDoc = $link->getDocument();
|
||||
|
||||
echo $this->documentListRowStart($sourceDoc);
|
||||
$sourceDoc->verifyLastestContentExpriry();
|
||||
$txt = $this->callHook('documentListItem', $sourceDoc, $previewer, false, 'reverselinks');
|
||||
if(is_string($txt))
|
||||
|
@ -1684,6 +1683,7 @@ $(document).ready( function() {
|
|||
else {
|
||||
$extracontent = array();
|
||||
$extracontent['below_title'] = $this->getListRowPath($sourceDoc);
|
||||
echo $this->documentListRowStart($sourceDoc);
|
||||
echo $this->documentListRow($sourceDoc, $previewer, true, 0, $extracontent);
|
||||
}
|
||||
print "<td><span class=\"actions\">";
|
||||
|
|
Loading…
Reference in New Issue
Block a user