mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
cs: Second part - ignore test/app
subdirectory.
This commit is contained in:
@@ -275,7 +275,7 @@ class ParticipationController extends AbstractController
|
||||
$this->addFlash(
|
||||
'success',
|
||||
$this->get('translator')
|
||||
->trans('The participation has been sucessfully removed')
|
||||
->trans('The participation has been sucessfully removed')
|
||||
);
|
||||
|
||||
return $this->redirectToRoute('chill_event__event_show', [
|
||||
@@ -551,8 +551,7 @@ class ParticipationController extends AbstractController
|
||||
Request $request,
|
||||
Participation $participation,
|
||||
bool $multiple = false
|
||||
)
|
||||
{
|
||||
) {
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
if ($em->contains($participation)) {
|
||||
@@ -653,8 +652,8 @@ class ParticipationController extends AbstractController
|
||||
$ignoredParticipations[] = $participation
|
||||
->getEvent()->getParticipations()->filter(
|
||||
function (Participation $p) use ($participation) {
|
||||
return $p->getPerson()->getId() === $participation->getPerson()->getId();
|
||||
}
|
||||
return $p->getPerson()->getId() === $participation->getPerson()->getId();
|
||||
}
|
||||
)->first();
|
||||
} else {
|
||||
$newParticipations[] = $participation;
|
||||
|
Reference in New Issue
Block a user