Skip to content

Commit

Permalink
fix for ajax call error
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdentremont committed Oct 10, 2023
1 parent 4c8c26f commit b76df3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions advanced_search.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ advanced.search.admin:
js/advanced_search.admin.js: {}
dependencies:
- core/drupal.tabledrag
- core/jquery
- core/once

advanced.search.form:
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/AjaxBlocksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b76df3f

Please sign in to comment.