diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php
index 24b2fd46d..00ac681aa 100644
--- a/views/bootstrap/class.MyDocuments.php
+++ b/views/bootstrap/class.MyDocuments.php
@@ -88,7 +88,7 @@ $(document).ready( function() {
$document->verifyLastestContentExpriry();
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
- $txt = $this->callHook('documentListItem', $document, $previewer);
+ $txt = $this->callHook('documentListItem', $document, $previewer, false, $res['version']);
if(is_string($txt))
echo $txt;
else
@@ -128,30 +128,6 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_to_review"));
if($resArr) {
$this->printList($resArr, $previewer, 'listReviews');
- /*
- print "
";
- print "\n\n";
- print " | \n";
- print "".getMLText("name")." | \n";
- print "".getMLText("status")." | \n";
- print "".getMLText("action")." | \n";
- print "
\n\n\n";
-
- // List the documents for which a review has been requested.
- foreach ($resArr as $res) {
- $document = $dms->getDocument($res["id"]);
- $document->verifyLastestContentExpriry();
-
- $txt = $this->callHook('documentListItem', $document, $previewer);
- if(is_string($txt))
- echo $txt;
- else {
- echo $this->documentListRow($document, $previewer, false, $res['version']);
- }
- }
-
- echo "\n
\n";
- */
} else {
printMLText("no_docs_to_review");
}
@@ -181,30 +157,6 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_to_approve"));
if($resArr) {
$this->printList($resArr, $previewer, 'listApprovals');
- /*
- print "";
- print "\n\n";
- print " | \n";
- print "".getMLText("name")." | \n";
- print "".getMLText("status")." | \n";
- print "".getMLText("action")." | \n";
- print "
\n\n\n";
-
- // List the documents for which an approval has been requested.
- foreach ($resArr as $res) {
- $document = $dms->getDocument($res["id"]);
- $document->verifyLastestContentExpriry();
-
- $txt = $this->callHook('documentListItem', $document, $previewer);
- if(is_string($txt))
- echo $txt;
- else {
- echo $this->documentListRow($document, $previewer, false, $res['version']);
- }
- }
-
- echo "\n
\n";
- */
} else {
printMLText("no_docs_to_approve");
}