used wrong var when listing approvals

This commit is contained in:
Uwe Steinmann 2022-09-09 07:53:28 +02:00
parent eecba62d8c
commit c045ba702e

View File

@ -440,7 +440,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Theme_Style {
case 0: // Approver is an individual.
$required = $dms->getUser($a["required"]);
if (!is_object($required)) {
$reqName = getMLText("unknown_user")." '".$r["required"]."'";
$reqName = getMLText("unknown_user")." '".$a["required"]."'";
}
else {
$reqName = "<i class=\"fa fa-user\"></i> ".htmlspecialchars($required->getFullName()." (".$required->getLogin().")");
@ -449,7 +449,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Theme_Style {
case 1: // Approver is a group.
$required = $dms->getGroup($a["required"]);
if (!is_object($required)) {
$reqName = getMLText("unknown_group")." '".$r["required"]."'";
$reqName = getMLText("unknown_group")." '".$a["required"]."'";
}
else {
$reqName = "<i class=\"fa fa-group\"></i> ".htmlspecialchars($required->getName());