Problem/Motivation
VBO is not processing all selected language versions of the same entity when processing is done in a batch.

Steps to reproduce
- Install Drupal using the standard install profile
- Download vbo
composer require drupal/views_bulk_operations - Log in as admin
- Enable vbo from the extend menu
- Enable content translation from the extend menu
- Add two new languages Finnish and German
- Enable translation for basic page content type
- Create 2 basic page nodes
- Translate one of the created nodes to both languages
- Create a new view that list all basic pages, display format table and items to display 2 per page
- Add bulk operation "Save content item" to that view, set Process in a batch operation enabled and batch size to 2
- Check all 2 rows from table and "Select / deselect all results in this view (all pages, 4 total)"
- Select "Save content item" action and click "Apply to selected items" button
- Result is "Action processing results: Save content item (3)."
- Modify the view and uncheck "Process in a batch operation" from the VBO field
- Repeat steps 12 and 13
- Now the result is Action processing results: Save content item (4).
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | vbo_act_on_translations-3210957-8.patch | 2.02 KB | liquidcms |
| 4.png | 39.16 KB | mikran |
Issue fork views_bulk_operations-3210957
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andrimont commentedI can see the same issue : the translated content cannot be modified during a VBO batch process.
Comment #4
alvar0hurtad0Working on this.
Comment #6
papagrandeI can confirm that the MR fixes the problem on a client's site.
The code looks fine to me, but I claim no expertise with the ViewsBulkOperationsActionProcessor service nor do I know why the tests aren't passing.
Comment #7
graber commentedSorry but tests must pass for this to be RTBC.
Comment #8
liquidcms commentedpatch file for MR listed above.
Comment #9
alvar0hurtad0Comment #11
graber commented