do not show update user for revisions in status 0

This commit is contained in:
Uwe Steinmann 2019-04-05 13:23:38 +02:00
parent d0cf90032f
commit e2c3cbe3cf
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,9 @@
- fix editing of document attachments
- make receipt summary look like approval/review summary
- merge changes up to 5.1.10
- do not show the updating user in a revision workflow if the status is 0
this is misleading because the user starting the revision workflow is the one
first accessing the document
--------------------------------------------------------------------------------
Changes in version 6.0.6

View File

@ -1430,8 +1430,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "<td>".$reqName."</td>\n";
print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>";
/* $updateUser is the user who has done the revision */
$updateUser = $dms->getUser($r["userID"]);
print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>";
if($r['status'] != 0) {
$updateUser = $dms->getUser($r["userID"]);
print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li>";
}
print "</ul></td>";
print "<td>".htmlspecialchars($r["comment"])."</td>\n";
print "<td>".getRevisionStatusText($r["status"])."</td>\n";
print "<td><ul class=\"unstyled\">";