I cloned default scald_atoms view, added VBO field to perform mass tagging. Got this error:

EntityMalformedException: Missing bundle property on entity of type scald_atom.
in entity_extract_ids() (line 7693 of /bla/bla/bla/drupal-7.23/includes/common.inc).

Then I made a separate page display for Image provider atoms only. Narrowed my settings for "Modify entity values" to "Fields for type Image -> Tags". Got same error.

Not sure it's a bug, let's consider this as a support request for now.

Comments

bojanz’s picture

VBO supports any entity type out of the box.
Does the "delete entity" action work?
(So we can narrow down, is it one action failing, or all of them)

tema’s picture

"Delete item" produces no error and reported the number of successfuly deleted atoms. But no operation is actually performed, all items are still viewable and editable.

I'm using Drupal 7.23 (minimal profile), Entity API 7.x-1.2, Scald Core and Scald Image 7.x-1.1, Views 7.x-3.7, Views Bulk Operations 7.x-3.1.

Y.sa’s picture

Same probleme here, with the same version.

VBO use entity_delete() to delete entity in batch.
But this did not work for scald entity, even when trying this alone : entity_delete('scald_atom', atom_id);

Can use a workaround with vbo with a custom action, but what is avoiding scald atoms to be delete with entity_delete ?

jcisio’s picture

It is because Scald does not expose the deletion callback to Entity API. I'm working on a patch.

jcisio’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Fixed

I've just tested and Modify entity values works (Scald 1.x-dev, because 1.1 is 7 month old). Deletion did not work because the action was not exposed to Entity API (Scald is not depend on it). Fixed with f1147b5. Thanks for the hint!

tema’s picture

Thanks, jcisio!

Status: Fixed » Closed (fixed)

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