Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps to reproduce:
- Create a table view including VBO that lists some entities containing a date field
- Add and expose a filter on this date field, greater than/equal to, and add a default value (You need to set a date that will leave out some older entries, but still show some upcoming dates)
- Save the view and navigate to its page
- Filter for a date older than the default value or just filter with an empty date field
- Process an action on a row that was not inside the initial load with the default value
- The action can be selected and processes as expected, but no changes are saved
If you leave the default value of the exposed filter empty in its settings, then everything works fine. It seems like the values of the older dates are not in reach of the action, if they are not contained within the initial results.
To mention - I can only confirm this for modifying field values with view_bulk_edit, not regular actions.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_bulk_operations-default_filter_issue-2941602-2.patch | 2.73 KB | Graber |
| |||
vbo_exposed-filter_default-value.png | 295.67 KB | ABaier | |
vbo_exposed-filter_no-default-value.png | 272.62 KB | ABaier |
Comments
Comment #2
Graber CreditAttribution: Graber as a volunteer commentedNice find! Right in time, otherwise we'd have a cleanup to perform (see the related issue).
Patch attached, please check.
Comment #3
Graber CreditAttribution: Graber as a volunteer commentedComment #4
ABaier CreditAttribution: ABaier commentedThanks Graber, the patch applied cleanly against rc3 and it seems to have fixed the problem.
Before saving my view again (had an empty value for the date) I got the following, which did not interfere with the functionality though. After saving the view one time with the default inside and switching back to empty, the notices were gone.
Comment #5
Graber CreditAttribution: Graber as a volunteer commentedYes, just noticed.
The patch to #2941405: Incorrect selection behavior using grouped rows output Has solution of this issue included along with the notice fix.
Sorry for making a bit of a mess but dividing patches to those 2 different functionalities' fixes would be a bit troublesome when working on both issues and one codebase simultaneously.
Comment #6
ABaier CreditAttribution: ABaier commentedComment #8
Graber CreditAttribution: Graber as a volunteer commented