mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-09 11:29:01 +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();
|
$responsibleUser = $link->getUser();
|
||||||
$targetDoc = $link->getTarget();
|
$targetDoc = $link->getTarget();
|
||||||
|
|
||||||
echo $this->documentListRowStart($targetDoc);
|
|
||||||
$targetDoc->verifyLastestContentExpriry();
|
$targetDoc->verifyLastestContentExpriry();
|
||||||
$txt = $this->callHook('documentListItem', $targetDoc, $previewer, false, 'reverselinks');
|
$txt = $this->callHook('documentListItem', $targetDoc, $previewer, false, 'reverselinks');
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
|
@ -1616,6 +1615,7 @@ $(document).ready( function() {
|
||||||
else {
|
else {
|
||||||
$extracontent = array();
|
$extracontent = array();
|
||||||
$extracontent['below_title'] = $this->getListRowPath($targetDoc);
|
$extracontent['below_title'] = $this->getListRowPath($targetDoc);
|
||||||
|
echo $this->documentListRowStart($targetDoc);
|
||||||
echo $this->documentListRow($targetDoc, $previewer, true, 0, $extracontent);
|
echo $this->documentListRow($targetDoc, $previewer, true, 0, $extracontent);
|
||||||
}
|
}
|
||||||
print "<td><span class=\"actions\">";
|
print "<td><span class=\"actions\">";
|
||||||
|
@ -1676,7 +1676,6 @@ $(document).ready( function() {
|
||||||
$responsibleUser = $link->getUser();
|
$responsibleUser = $link->getUser();
|
||||||
$sourceDoc = $link->getDocument();
|
$sourceDoc = $link->getDocument();
|
||||||
|
|
||||||
echo $this->documentListRowStart($sourceDoc);
|
|
||||||
$sourceDoc->verifyLastestContentExpriry();
|
$sourceDoc->verifyLastestContentExpriry();
|
||||||
$txt = $this->callHook('documentListItem', $sourceDoc, $previewer, false, 'reverselinks');
|
$txt = $this->callHook('documentListItem', $sourceDoc, $previewer, false, 'reverselinks');
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
|
@ -1684,6 +1683,7 @@ $(document).ready( function() {
|
||||||
else {
|
else {
|
||||||
$extracontent = array();
|
$extracontent = array();
|
||||||
$extracontent['below_title'] = $this->getListRowPath($sourceDoc);
|
$extracontent['below_title'] = $this->getListRowPath($sourceDoc);
|
||||||
|
echo $this->documentListRowStart($sourceDoc);
|
||||||
echo $this->documentListRow($sourceDoc, $previewer, true, 0, $extracontent);
|
echo $this->documentListRow($sourceDoc, $previewer, true, 0, $extracontent);
|
||||||
}
|
}
|
||||||
print "<td><span class=\"actions\">";
|
print "<td><span class=\"actions\">";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user