Closed (outdated)
Project:
Views Bulk Operations (VBO)
Version:
6.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2011 at 18:29 UTC
Updated:
17 Oct 2016 at 14:39 UTC
Jump to comment: Most recent
Comments
Comment #1
rfayHmm. Looks to me like this is broken in 6.x-1.x as well.
When executing the action (display tokenized message) I get
Comment #2
bojanz commentedWow. The actions provided by system.module are retarded.
They can't know the entity type, so they expect an entity in $context, keyed by entity type. But then you have code like this:
So it provides a fallback for nodes, and node tokens work.
But note that the exact same code gets executed for all entity types, so for users you get both $context['node'] and $context['user'] pointing to the $user.
So as soon as you try a node token in an action run on users, the whole thing crashes. It really wasn't written to be used generically (outside of token module, outside of nodes).
I'm thinking of removing support for "system" actions in VBO because of this. VBO already has its own "entity" type that sane actions can use to work with any entity type.
For now I've committed a basic fix so that at least tokens for the current entity work:
http://drupalcode.org/project/views_bulk_operations.git/commitdiff/2a4bc...
Repurposing the issue for D6. Thought that might be a bug in the token_actions module.
Comment #3
kenorb commented