From 88452a63a1cda97d338075bfac97f5f86d6b85b4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 29 Feb 2024 08:50:35 +0100 Subject: [PATCH] do not show form if there are no process to transfer --- views/bootstrap/class.RemoveUserFromProcesses.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.RemoveUserFromProcesses.php b/views/bootstrap/class.RemoveUserFromProcesses.php index 7fbcbfff4..1f531aed8 100644 --- a/views/bootstrap/class.RemoveUserFromProcesses.php +++ b/views/bootstrap/class.RemoveUserFromProcesses.php @@ -230,7 +230,6 @@ $(document).ready( function() { $this->rowStart(); $this->columnStart(4); - $this->warningMsg(getMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName())))); $reviewStatus = $rmuser->getReviewStatus(); $tmpr = array(); @@ -315,7 +314,8 @@ $(document).ready( function() { getMLText('approvals_rejected_latest', array('no_approvals' => $ca["-1"])) ); } - + if($out) { + $this->warningMsg(getMLText("confirm_rm_user_from_processes", array ("username" => htmlspecialchars($rmuser->getFullName())))); ?>
@@ -355,6 +355,9 @@ $(document).ready( function() {
infoMsg(getMLText("info_rm_user_from_processes_none", array ("username" => htmlspecialchars($rmuser->getFullName())))); + } $this->columnEnd(); $this->columnStart(8); echo '
';