When using Workflow and Action versions 5.x-2.x, which are compatible with Drupal 6 style actions, the batch operation functionality does not work.

The attached patch uses the new actions_do() function for single step workflow actions. This patch also includes - http://drupal.org/node/240838#comment-824383.

Please create a new 5.x-2.x branch.

CommentFileSizeAuthor
views_bulk_operations_1.patch1.29 KBv1nce
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

infojunkie’s picture

Assigned: Unassigned » infojunkie

Thanks for the patch! I'll get to work on it next week.

cornmuffin’s picture

I applied the patch and can now access the workflow actions, however, when I attempt workflow operation which is configureable I receive an error on the parameters page where I believe it should show the workflow change state form. Here are the errors.

Set parameters for 'Change workflow state of post to new state'

* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/modules/views_bulk_operations/views_bulk_operations.module on line 211.

* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/mysite/public_html/modules/views_bulk_operations/views_bulk_operations.module on line 218.

It seems as if the single step batch operations are working correctly and so I assumed that module had to be changed to use actions_do for "configurable actions" however after 3 hours I was unable to tackle the problem.

Any help would be greatly appreciated.

infojunkie’s picture

Status: Needs review » Fixed

Fixed in the latest release of the 1.x-dev branch. I didn't need to branch off the module, it will adjust automatically to old- or new-style actions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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