The views_bulk_operations_views_list() function iterates through each display by building each display from the original $view object. Unfortunately, Views' build method checks if the $view has already been built and stops if it has. This means that any view that has a VBO field in the master display will return all displays (valid or not), and a view that doesn't have any VBO fields in the master will return none of the following displays.
I altered the code to clone the original $view object and build each display out individually. Patch to follow in next post.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1980084-2-rules_view_displays_iteration.patch | 1.05 KB | jbylsma |
Comments
Comment #1
jbylsma commentedPatch attached.
Comment #2
bojanz commentedCommitted, thanks.