mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix type for condition in ParticipationController
This commit is contained in:
parent
c2061110dd
commit
246ee58d8b
@ -235,7 +235,7 @@ class ParticipationController extends AbstractController
|
|||||||
'The participation was created'
|
'The participation was created'
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($request->query->get('return_path')) {
|
if ($request->query->has('return_path')) {
|
||||||
return $this->redirect($request->query->get('return_path'));
|
return $this->redirect($request->query->get('return_path'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -716,7 +716,7 @@ class ParticipationController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
protected function newSingle(Request $request)
|
protected function newSingle(Request $request)
|
||||||
{
|
{
|
||||||
$returnPath = $request->query->get('return_path') ?
|
$returnPath = $request->query->has('return_path') ?
|
||||||
$request->query->get('return_path') : null;
|
$request->query->get('return_path') : null;
|
||||||
|
|
||||||
$participation = $this->handleRequest($request, new Participation(), false);
|
$participation = $this->handleRequest($request, new Participation(), false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user