mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
show workflow name and state instead of just 'in workflow'
This commit is contained in:
parent
ad91c8202b
commit
e5ab79b067
|
@ -621,6 +621,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
print "<tr>\n";
|
print "<tr>\n";
|
||||||
$latestContent = $document->getLatestContent();
|
$latestContent = $document->getLatestContent();
|
||||||
|
$workflow = $latestContent->getWorkflow();
|
||||||
$previewer->createPreview($latestContent);
|
$previewer->createPreview($latestContent);
|
||||||
print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">";
|
print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">";
|
||||||
if($previewer->hasPreview($latestContent)) {
|
if($previewer->hasPreview($latestContent)) {
|
||||||
|
@ -630,7 +631,9 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
print "</a></td>";
|
print "</a></td>";
|
||||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=workflow\">" . htmlspecialchars($res["name"]) . "</a></td>\n";
|
print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=workflow\">" . htmlspecialchars($res["name"]) . "</a></td>\n";
|
||||||
print "<td>".getOverallStatusText($res["status"])."</td>";
|
// print "<td>".getOverallStatusText($res["status"])."</td>";
|
||||||
|
$workflowstate = $latestContent->getWorkflowState();
|
||||||
|
print '<td>'.getOverallStatusText($res["status"]).': '.$workflow->getName().'<br />'.$workflowstate->getName().'</td>';
|
||||||
print "<td>".$res["version"]."</td>";
|
print "<td>".$res["version"]."</td>";
|
||||||
print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>";
|
print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>";
|
||||||
print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";
|
print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user