Commit 71582c27 authored by jaapjansma's avatar jaapjansma

Fixed issue with empty participant status

parent 14e8e8e5
......@@ -31,8 +31,10 @@ class SendEmailToParticipants extends AbstractAction {
if ($parameters->doesParameterExists('with_status')) {
$status = $parameters->getParameter('with_status');
if (is_array($status)) {
$participantParams['status_id']['IN'] = $status;
} else {
if (count($status)) {
$participantParams['status_id']['IN'] = $status;
}
} elseif ($status) {
$participantParams['status_id'] = $status;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment