From b76df3f12a3bc0991a3f9136e7b857f14571d6f0 Mon Sep 17 00:00:00 2001 From: Josh d'Entremont Date: Tue, 10 Oct 2023 15:31:45 -0300 Subject: [PATCH] fix for ajax call error --- advanced_search.libraries.yml | 1 + src/Controller/AjaxBlocksController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced_search.libraries.yml b/advanced_search.libraries.yml index f830c32..b1f5e24 100644 --- a/advanced_search.libraries.yml +++ b/advanced_search.libraries.yml @@ -3,6 +3,7 @@ advanced.search.admin: js/advanced_search.admin.js: {} dependencies: - core/drupal.tabledrag + - core/jquery - core/once advanced.search.form: diff --git a/src/Controller/AjaxBlocksController.php b/src/Controller/AjaxBlocksController.php index 74d1652..519ee7e 100644 --- a/src/Controller/AjaxBlocksController.php +++ b/src/Controller/AjaxBlocksController.php @@ -125,7 +125,7 @@ public function respond(Request $request) { // Rebuild the request and the current path, needed for facets. $path = $request->request->get('link'); - $blocks = $request->request->get('blocks'); + $blocks = $request->request->all('blocks'); // Make sure we are not updating blocks multiple times. $blocks = array_unique($blocks);