fix organization not loading

This commit is contained in:
Charles 2026-02-02 09:42:15 +01:00
parent 0a88ad0bde
commit bcb0cbc9b9
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ export default class extends Controller {
placeholder: "Aucun résultat trouvé pour cette recherche",
locale: "fr", //'en' for English, 'fr' for French (en is default, no need to include it)
ajaxURL: `/organization/data/${this.userValue}`,
ajaxURL: `/organization/data`,
ajaxConfig: "GET",
pagination: true,
paginationMode: "remote",

View File

@ -301,8 +301,8 @@ class OrganizationController extends AbstractController
}
// API endpoint to fetch organization data for Tabulator
#[Route(path: '/data/{id}', name: 'data', methods: ['GET'])]
public function data(Request $request, int $id): JsonResponse
#[Route(path: '/data', name: 'data', methods: ['GET'])]
public function data(Request $request): JsonResponse
{
$this->denyAccessUnlessGranted('ROLE_ADMIN');