Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2021 at 14:04 UTC
Updated:
21 May 2021 at 20:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kaszarobertI attach a patch for the fix.
Drupal inserts a 'select-all' class to the table header and the core tableselect.js puts a checkbox there on page load to make it possible select all the elements in one click. This happens in core's BulkForm preRender function. SearchApiBulkForm extends this class but the SearchApiFieldTrait overrides this preRender method & that CSS class addition never happens. That overridden preRender method is called for every result row, so in the patch I check that it should only put the classname there if it is a SearchApiBulkForm we're working with.
Comment #3
drunken monkeyThanks a lot for reporting this issue and providing a patch! Seems to work great, too, so very good.
(Also, sorry for taking so long to reply!)
I just cleaned up the code a bit by moving it to the actual
SearchApiBulkFormclass, where it belongs. Should otherwise do exactly the same. Please test/review and I’ll commit it.Comment #4
kaszarobertEverything works fine. RTBC
Comment #6
drunken monkeyGreat to hear, thanks a lot for reporting back!
Committed.
Thanks again!