fix for ajax call error

This commit is contained in:
Josh d'Entremont 2023-10-10 15:31:45 -03:00
parent 4c8c26f4b2
commit b76df3f12a
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ advanced.search.admin:
js/advanced_search.admin.js: {} js/advanced_search.admin.js: {}
dependencies: dependencies:
- core/drupal.tabledrag - core/drupal.tabledrag
- core/jquery
- core/once - core/once
advanced.search.form: advanced.search.form:

View file

@ -125,7 +125,7 @@ class AjaxBlocksController extends ControllerBase {
// Rebuild the request and the current path, needed for facets. // Rebuild the request and the current path, needed for facets.
$path = $request->request->get('link'); $path = $request->request->get('link');
$blocks = $request->request->get('blocks'); $blocks = $request->request->all('blocks');
// Make sure we are not updating blocks multiple times. // Make sure we are not updating blocks multiple times.
$blocks = array_unique($blocks); $blocks = array_unique($blocks);