mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
handle case when certain docs are passed to removefromprocesses
This commit is contained in:
parent
70114bbd30
commit
2aa67b93a0
|
@ -228,13 +228,15 @@ else if ($action == "removefromprocesses") {
|
|||
$_POST["status"]["review"] = array();
|
||||
if(!isset($_POST["status"]["approval"]))
|
||||
$_POST["status"]["approval"] = array();
|
||||
if (!$userToRemove->removeFromProcesses($user, $_POST['status'])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
if(!empty($_POST['needsdocs']) && empty($_POST['docs'])) {
|
||||
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_rm_user_processes_no_docs')));
|
||||
} else {
|
||||
if (!$userToRemove->removeFromProcesses($user, $_POST['status'], $userToAssign, $_POST['docs'])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_rm_user_processes"));
|
||||
}
|
||||
add_log_line(".php&action=removefromprocesses&userid=".$userid);
|
||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_user_processes')));
|
||||
}
|
||||
|
||||
add_log_line(".php&action=removefromprocesses&userid=".$userid);
|
||||
|
||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_user_processes')));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user