Skip to content

Commit

Permalink
Fix form problem in PROD mode also for filter controller
Browse files Browse the repository at this point in the history
  • Loading branch information
shochdoerfer authored and PierreGauthier committed Apr 22, 2024
1 parent 7932e4d commit 0c17288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function viewMore(Request $request, string $filterField): Response
$form = $this->formFactory->createNamed('criteria')->add('gally', GallyDynamicFilterType::class);
$form->get('gally')->add($filterField, SelectFilterType::class, $options);
$form->get('gally')->get($filterField)->setData($filters[$filterField] ?? null);
$html = $this->renderView('@GallySyliusPlugin/Grid/Filter/gally_dynamic_filter.html.twig', ['form' => $form]);
$html = $this->renderView('@GallySyliusPlugin/Grid/Filter/gally_dynamic_filter.html.twig', ['form' => $form->createView()]);

return $this->json(['html' => $html]);
}
Expand Down

0 comments on commit 0c17288

Please sign in to comment.