mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-19 16:54:25 +00:00
Fix passing of id parameter to route
This commit is contained in:
parent
260f3f2109
commit
2b86bf7ba4
@ -256,16 +256,7 @@ final class EventController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{id}/show', name: 'chill_event__event_show')]
|
||||||
* Finds and displays a Event entity.
|
|
||||||
*
|
|
||||||
* @ParamConverter("event", options={"id": "event_id"})
|
|
||||||
*
|
|
||||||
* @return Response
|
|
||||||
*
|
|
||||||
* @throws \PhpOffice\PhpSpreadsheet\Exception
|
|
||||||
*/
|
|
||||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/show', name: 'chill_event__event_show')]
|
|
||||||
public function showAction(Event $event, Request $request)
|
public function showAction(Event $event, Request $request)
|
||||||
{
|
{
|
||||||
if (!$event) {
|
if (!$event) {
|
||||||
|
@ -111,7 +111,7 @@ block js %}
|
|||||||
href="{{
|
href="{{
|
||||||
chill_path_add_return_path(
|
chill_path_add_return_path(
|
||||||
'chill_event__event_show',
|
'chill_event__event_show',
|
||||||
{ event_id: e.id }
|
{ id: e.id }
|
||||||
)
|
)
|
||||||
}}"
|
}}"
|
||||||
class="btn btn-show"
|
class="btn btn-show"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user