mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
do not hide review if workflow mode is traditional_only_approve
otherwise old documents which are still in review can't be reviewed anymore
This commit is contained in:
parent
1123611371
commit
ec78639d94
|
@ -636,7 +636,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentContainerstart();
|
$this->contentContainerstart();
|
||||||
print "<table class=\"table-condensed\">\n";
|
print "<table class=\"table-condensed\">\n";
|
||||||
|
|
||||||
if ($workflowmode != 'traditional_only_approval' && is_array($reviewStatus) && count($reviewStatus)>0) {
|
/* Just check fo an exting reviewStatus, even workflow mode is set
|
||||||
|
* to traditional_only_approval. There may be old documents which
|
||||||
|
* are still in S_DRAFT_REV.
|
||||||
|
*/
|
||||||
|
if (/*$workflowmode != 'traditional_only_approval' &&*/ is_array($reviewStatus) && count($reviewStatus)>0) {
|
||||||
|
|
||||||
print "<tr><td colspan=5>\n";
|
print "<tr><td colspan=5>\n";
|
||||||
$this->contentSubHeading(getMLText("reviewers"));
|
$this->contentSubHeading(getMLText("reviewers"));
|
||||||
|
@ -772,7 +776,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<?php
|
<?php
|
||||||
if($workflowmode != 'traditional_only_approval') {
|
/* Check for an existing review log, even if the workflowmode
|
||||||
|
* is set to traditional_only_approval. There may be old documents
|
||||||
|
* that still have a review log if the workflow mode has been
|
||||||
|
* changed afterwards.
|
||||||
|
*/
|
||||||
|
if($latestContent->getReviewStatus(10) /*$workflowmode != 'traditional_only_approval'*/) {
|
||||||
?>
|
?>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<?php $this->printProtocol($latestContent, 'review'); ?>
|
<?php $this->printProtocol($latestContent, 'review'); ?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user