I'm getting the following error message when I execute a VBO operation. The operation is executed however.

Notice: Undefined index: execution_type in _views_bulk_operations_execute() (line 670 of C:\wamp\www\contracts2\sites\all\modules\views_bulk_operations\views_bulk_operations.module).

Comments

bojanz’s picture

Status: Active » Fixed

Just a leftover line from a refactoring that nobody noticed until now (I wonder why I didn't see the notice myself).
In any case, committed a fix. Thanks!

chalee’s picture

@bojanz: thanks

BeaPower’s picture

Hi what is the fix, will you add it to the module for an update? Thanks.

bojanz’s picture

http://drupalcode.org/project/views_bulk_operations.git/commitdiff/96d74...

It is present in 7.x-3.x-dev. You can use that version until I tag 7.x-3.0-beta2 (in about 10 days).

BeaPower’s picture

Ok, I will wait in 10 days :)

carn1x’s picture

I am getting this bug, however the operation is not carried out.

I bulk deleted about 20 products all at once, 5 remained with this error. Trying to delete each individually with VBO causes the error.

As I'm writing this, I've just discovered if I try and delete from the product itself, I see the error: "This product is referenced by a line item on Order 1 and therefore cannot be deleted. Disable it instead."

I suppose VBO should report this error rather than that in the OP, or is this just a coincidence?

EDIT: Found the order and deleted it, then came back to delete remaining products. Still got the error above, however the products deleted, so I suppose the error was possibly unrelated.

bojanz’s picture

That is a Commerce bug, where it is canceling the delete without first telling VBO through the access callback. See #1199130: Check if entity_delete() successfully did the job (after Entity API starts returning the status). I know there's an issue in the Commerce queue somewhere as well.

Status: Fixed » Closed (fixed)

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