Skip to content

Commit

Permalink
Force selection of participants with notes when sending sample message
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrech committed Dec 3, 2021
1 parent 83f9bb7 commit afb64d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/SantaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function sendSampleMessage(Request $request, FormFactoryInterface $formFa
$form->handleRequest($request);

if ($form->isSubmitted()) {
$notes = $config->getNotes();
$notes = array_filter($config->getNotes());

$candidates = array_filter($notes ? array_keys($notes) : $config->getSelectedUsers(), function ($id) use ($application) {
return $application->getAdmin()->getIdentifier() !== $id;
Expand Down

0 comments on commit afb64d6

Please sign in to comment.