mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-19 08:01:39 +00:00
do not remove from process when none is checked
This commit is contained in:
parent
c6a69f399b
commit
f307658290
|
@ -203,6 +203,10 @@ else if ($action == "removefromprocesses") {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_POST["status"]) && is_array($_POST["status"]) && $_POST["status"]) {
|
if(isset($_POST["status"]) && is_array($_POST["status"]) && $_POST["status"]) {
|
||||||
|
if(!isset($_POST["status"]["review"]))
|
||||||
|
$_POST["status"]["review"] = array();
|
||||||
|
if(!isset($_POST["status"]["approval"]))
|
||||||
|
$_POST["status"]["approval"] = array();
|
||||||
if (!$userToRemove->removeFromProcesses($user, $_POST['status'])) {
|
if (!$userToRemove->removeFromProcesses($user, $_POST['status'])) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user