mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
Update backoffice templates to dynamically include titles and improve candidate handling in SeasonController
This commit is contained in:
@@ -69,7 +69,7 @@ class SeasonController extends AbstractController
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
$candidates = $form->get('candidates')->getData();
|
||||
foreach (explode("\n", (string) $candidates) as $candidate) {
|
||||
$season->addCandidate(new Candidate($candidate));
|
||||
$season->addCandidate(new Candidate(mb_rtrim($candidate)));
|
||||
}
|
||||
|
||||
$this->em->flush();
|
||||
|
||||
Reference in New Issue
Block a user