- π¦πΊAustralia acbramley
Seeing the same on 4.2.4, it happens when selecting the checkbox in the table header, not the "Select / deselect all results"
- π¦πΊAustralia acbramley
FYI - the patch doesn't fix it for me. It seems like the issue is there's no ajax tied to that checkbox. The other checkboxes (in each row) fire ajax requests to update the selected items.
- πΊπΈUnited States SteelStrung
I am also experiencing this issue using Drupal 10. I think acbramley's screenshot accurately describes the issue, but I attached another in case that helps. Using the checkbox in the table header selects all the items, but still shows "Selected 0 items" and cannot apply any actions (button remains disabled)
- First commit to issue fork.
- last update
about 1 year ago 15 pass - @aurelianzaha opened merge request.
- π¦πΉAustria aurelianzaha
Hi,
I was able to reproduce the issue when having a view with 50+ items (or whatever the limit of the pager is) and having the sticky header option for the table.
This results in having 2 'select all' checkbox elements
and the JS event listener is attached only to the first one
tableSelectAll[index] = $(this).find('.select-all input').first();
which is the checkbox from the sticky headerMR created https://git.drupalcode.org/project/views_bulk_operations/-/merge_request...
- Status changed to Needs review
about 1 year ago 5:59am 7 November 2023 - last update
about 1 year ago Composer error. Unable to continue. - last update
about 1 year ago Patch Failed to Apply - last update
about 1 year ago 15 pass - π΅π±Poland Graber
Nice find plus a simple solution, looks like it should work with multiple tables (grouping) and multiple views on the same page. Can someone test just in case?
- πΊπ¦Ukraine khiminrm
Faced with the same as described in #5 π 'Selected 0 items in this view' displayed instead of the total item count Needs review . In my case the views used style https://www.drupal.org/project/views_secondary_row β so class 'vbo-table' wasn't added in
function views_bulk_operations_preprocess_views_view_table(&$variables)
. And in frontUI.js thevar $viewsTables = $('.vbo-table', $vboForm);
was null. I've added the class in custom theme's preprocess and it fixed the bug for me. It worked with and without the patch. I hope it will help someone else in similar cases.