fix link to downloadable file in printProtocol()

This commit is contained in:
Uwe Steinmann 2015-08-07 14:29:32 +02:00
parent 65f36e13cc
commit d7223bc521

View File

@ -1904,6 +1904,7 @@ mayscript>
*/ */
protected function printProtocol($latestContent, $type="") { /* {{{ */ protected function printProtocol($latestContent, $type="") { /* {{{ */
$dms = $this->params['dms']; $dms = $this->params['dms'];
$document = $latestContent->getDocument();
?> ?>
<legend><?php printMLText($type.'_log'); ?></legend> <legend><?php printMLText($type.'_log'); ?></legend>
<table class="table condensed"> <table class="table condensed">
@ -1957,13 +1958,13 @@ mayscript>
case "review": case "review":
if($rec['file']) { if($rec['file']) {
echo "<br />"; echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$rec['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; echo "<a href=\"../op/op.Download.php?documentid=".$document->getID()."&reviewlogid=".$rec['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
} }
break; break;
case "approval": case "approval":
if($rec['file']) { if($rec['file']) {
echo "<br />"; echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$rec['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; echo "<a href=\"../op/op.Download.php?documentid=".$document->getID()."&approvelogid=".$rec['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
} }
break; break;
} }