Closed (fixed)
Project:
Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Mar 2012 at 12:36 UTC
Updated:
13 Jun 2014 at 23:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
epieddy commentedUp
Comment #2
plachI think the right fix is using
entity_extract_ids()to get the bundle in a generic fashion. Patch welcome.Comment #3
plachClosed duplicate issue at #1664552: Notice: Undefined property: stdClass::$type in title_tokens_alter() (line 597 of /sites/all/modules/title/title.module)..
Comment #4
dave reidThis problem is in two parts. Title module assumes that $context['type'] is in fact an entity type string when it fact it is not. Core uses 'taxonomy_term' for an entity type, but 'term' for the token type. So we need to address this.
Comment #5
plach@Dave Reid:
What about adding an entity info key somewhere to map token types to entity types?
Comment #6
joelrotelli commentedHi,
I have made a patch for this from the fix proposed by epieddy .
Comment #7
peximo commentedHi, there's already a key that maps the entity type and the token, the attached patch should fix the bug using this mapping.
I did some tests with pathauto and seems to work properly.
Comment #8
plachLooks good, thanks! It would be great to have some tests for this.
Comment #9
plachCan anyone here tell us whether the patch in #7 fixes his issue?
Comment #10
plachOk, committed and pushed #7. It would still be good to get some tests for this.
Comment #11.0
(not verified) commentedUpdated issue summary.