Problem/Motivation

If "Process in a batch operation" is not selected, then export VBO actions are not working correctly. The file is being generated, but the rows are not available. Additionally, there are a couple of PHP notices:

Notice: Undefined index: processed in Drupal\vbo_export\Plugin\Action\VboExportBase->executeMultiple() (line 249 of /var/www/docroot/modules/contrib/vbo_export/src/Plugin/Action/VboExportBase.php)
Notice: Undefined index: current_batch in Drupal\vbo_export\Plugin\Action\VboExportBase->getCid() (line 346 of /var/www/docroot/modules/contrib/vbo_export/src/Plugin/Action/VboExportBase.php)

Steps to reproduce

Try one of "Generate from ..." actions with unselected "Process in a batch operation" checkbox.

Proposed resolution

Define more default properties in the sandbox array to be truly compatible with Batch API.

Remaining tasks

1. Review
2. Commit

There are no User interface, API, and Data model change changes.

Command icon 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

Matroskeen created an issue. See original summary.

matroskeen’s picture

Status: Active » Needs work

The fix is available in the merge request. I'll leave it as Needs Work for the tests

Graber made their first commit to this issue’s fork.

  • Graber committed 5ef5db54 on 4.2.x authored by Matroskeen
    Issue #3338246 by Matroskeen: Export actions (inherited from...
graber’s picture

Status: Needs work » Fixed

Makes sense, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.