- ๐ฌ๐งUnited Kingdom mjpa
Patch in #82 doesn't work for us, it removes the ajax_view.js changes present in #80.
#80 applied to 9.5.5 cleanly and works for us.
- @tgauges opened merge request.
- First commit to issue fork.
- @tgauges opened merge request.
- @tgauges opened merge request.
- ๐ฉ๐ชGermany tgauges
Changing the target branch of the merge request
- broke our build
- made the MR have 700+ commits and 1000+ changes
I created a new merge requests against 9.5.x: https://git.drupalcode.org/project/drupal/-/merge_requests/3687.
- ๐ฎ๐นItaly charly71
Patch #80 work for us with Drupal 9.5.8 not with 9.5.9
Patch #82 doesn't work at all... - ๐ช๐ธSpain rodrigoaguilera Barcelona
This issue should be fixed first for Drupal 10 and then backport if it applies.
I left some comments in the MR from #90. I think is the right approach.
Since the project where I need this is in Drupal 9.5.9 you can find attached the patch for convenience. The rebase is quite trivial.
- Status changed to Needs review
almost 2 years ago 7:07am 4 May 2023 - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Patch Failed to Apply - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 30,286 pass, 18 fail The last submitted patch, 96: 3163299-96.patch, failed testing. View results โ
- last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 30,331 pass - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,377 pass, 1 fail - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed - ๐บ๐ฆUkraine Taran2L Lviv
Arghhh, I think I have found source of the issue why tests are so unreliable, and its ๐ Cached forms can have duplicate HTML IDs, which disrupts accessible form labels Needs work .. I think the fix is correct, but the test is not due to issues with duplicate form CSS ids.
- last update
almost 2 years ago 30,331 pass - last update
almost 2 years ago 29,380 pass - ๐บ๐ธUnited States smustgrave
Can the issue summary be updated to include the proposed solution and any remaining tasks.
- Status changed to Needs work
almost 2 years ago 10:46pm 6 May 2023 - last update
almost 2 years ago Custom Commands Failed - ๐ช๐ธSpain unstatu
I have detected that the block preprocess functions are not triggered for the exposed filter blocks when using this patch.
The problem appears because of this file changes
--- a/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php +++ b/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php @@ -32,15 +32,17 @@ public function getCacheContexts() { * context of current view and display ID. */ public function build() { - $output = $this->view->display_handler->viewExposedFormBlocks() ?? []; + $output = []; + $build = $this->view->display_handler->viewExposedFormBlocks() ?? []; // Provide the context for block build and block view alter hooks. // \Drupal\views\Plugin\Block\ViewsBlock::build() adds the same context in // \Drupal\views\ViewExecutable::buildRenderable() using // \Drupal\views\Plugin\views\display\DisplayPluginBase::buildRenderable(). - if (!empty($output)) { + if (!empty($build)) { $output += [ '#view' => $this->view, '#display_id' => $this->displayID, + 'content' => $build, ]; }
It seems that adding the block render array inside the `content` key avoids to trigger the preprocess functions.
- Open on Drupal.org โEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @tgauges opened merge request.
- last update
over 1 year ago Custom Commands Failed - ๐บ๐ธUnited States pyrello
pyrello โ changed the visibility of the branch 10.1.x to hidden.
- ๐บ๐ธUnited States pyrello
pyrello โ changed the visibility of the branch 11.x to hidden.
- Merge request !6791Issue #3163299: Ajax exposed filters not working for multiple instances of the same Views block placed on one page โ (Closed) created by pyrello
- ๐บ๐ธUnited States pyrello
pyrello โ changed the visibility of the branch 10.3.x to hidden.
- Merge request !6796Issue #3163299: Ajax exposed filters not working for multiple instances of the same Views block placed on one page โ (Open) created by pyrello
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
There is no need to make a new merge request. You can force-push the branch of the existing merge request and it will use the new code. It will leave behind a tag pointing at the old code.
- ๐บ๐ธUnited States pyrello
@Liam Moreland Good to know. Not sure I would have figured that out on my own and I have yet to discover the docs indicating the proper workflow with MRs yet.
- ๐ซ๐ทFrance ericdsd France
Tested MR from #116 over core 10.3.5 on views embedded with viewsreference + viewsreference_filter + better_exposed_filter with success.
Thanks a lot ! - ๐ซ๐ทFrance ericdsd France
Uploading patch from MR 6796 #116 for core 10.3.5
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
I can confirm the latest patch also solved this issue for us.
- ๐บ๐ธUnited States smustgrave
Issue summary is still incomplete and there are multiple MRs but donโt appear to be one for 11.x
- ๐บ๐ฆUkraine khiminrm
This patch fixes only views in blocks, but not exposed forms in blocks as in https://www.drupal.org/project/drupal/issues/3032353 โจ Exposed forms in a block are not currently updated when Ajax filtering is executed Needs work , right?
Trying to find out how to fix conflicts between patches from both issues and apply to project I'm working on now. - ๐จ๐ฆCanada laura.j.johnson@gmail.com Toronto
laura.j.johnson@gmail.com โ made their first commit to this issueโs fork.
- Merge request !11201Resolve #3163299 "Views multiple ajax exposed filters not media library 10.3" โ (Open) created by Unnamed author
- ๐จ๐ฆCanada laura.j.johnson@gmail.com Toronto
The 10.3 patch works to fix the issue with multiple views on a page but we have the issue where exposed filters in media library views break when adding blocks with Layout Builder because there is no ajax applied to them. I have created an MR and attached a patch to use the original form IDs for media library views. We're using Gin LB.
- ๐ง๐ชBelgium wannesdr Belgium ๐ง๐ช
wannesdr โ changed the visibility of the branch 3163299-views-multiple-ajax-exposed-filters to active.
- ๐ง๐ชBelgium StryKaizer Belgium
I tried reproducing the media browser issue in vanilla core + layout builder, but I could not reproduce this.
It might be a Gin LB specific issue, which I did not test. If so, gin_lb seems to be the appropriate place to fix this issue. - ๐ง๐ชBelgium StryKaizer Belgium
We discussed this issue at dev days with Lendude & Wannesdr.
For ajax updates of exposed forms, which is required for e.g. Facets 3 users, we need ajax enabled exposed forms exposed in a block to update the form(s) too.
However, some users' usecase is that they explicitly use "expose form in block" to prevent the form from updating, which is the current behaviour.
That's why we suggest introducing an extra setting, only visible when "expose form in block" is set to "yes", which allows users to choose how the block form should behave (update or do not update on form submit). For existing views, we keep the old behaviour as default value. - Merge request !11923New 11.x branch based on 3163299-views-multiple-ajax-exposed-filters-10.3 โ (Open) created by StryKaizer