Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2013 at 19:55 UTC
Updated:
4 Feb 2013 at 21:20 UTC
Jump to comment: Most recent file
If we pass in an invalid entity type to token_get_entity_mapping('entity', $entity_type), I have a suspicion that the returned value should be the passed in invalid entity type rather than FALSE. It causes problems like #1773926: Token validaiton fails on config edit if the instance context isn't an entity type. Maybe we should add an *optional* fallback for when we don't care for a FALSE value or not.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1894880-token-get-entity-mapping-fallback.patch | 2.08 KB | dave reid |
Comments
Comment #1
dave reidLet's try this out.
Comment #2
dave reidPushed #1 to 7.x-1.x.
http://drupalcode.org/project/token.git/commit/4a1977f