fix error in creating list of notifier

This commit is contained in:
Uwe Steinmann 2021-05-15 07:38:04 +02:00
parent c6a7460533
commit 64c6c21592

View File

@ -110,19 +110,19 @@ else {
$emailGroupListA = array();
$status = $version->getReviewStatus();
foreach ($status as $st) {
if ($st["status"]==0 && !in_array($st["required"], $emailUserList)) {
if($st['type'] == 0)
if ($st["status"]==0) {
if($st['type'] == 0 && !in_array($st["required"], $emailUserListR))
$emailUserListR[] = $st["required"];
else
elseif(!in_array($st["required"], $emailGroupListR))
$emailGroupListR[] = $st["required"];
}
}
$status = $version->getApprovalStatus();
foreach ($status as $st) {
if ($st["status"]==0 && !in_array($st["required"], $emailUserList)) {
if($st['type'] == 0)
if ($st["status"]==0) {
if($st['type'] == 0 && !in_array($st["required"], $emailUserListA))
$emailUserListA[] = $st["required"];
else
elseif(!in_array($st["required"], $emailGroupListA))
$emailGroupListA[] = $st["required"];
}
}