Closed (fixed)
Project:
Context entity field
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
19 Oct 2012 at 20:40 UTC
Updated:
26 Feb 2014 at 00:47 UTC
Jump to comment: Most recent
I'm trying to filter using a taxonomy term reference field on a taxonomy term, but it doesn't seem to be working.
Under entity type, I check taxonomy term. Under field name, I select the appropriate reference field. I uncheck empty field, and then type the appropriate tid into the field value box.
Am I supposed to do something else?
Comments
Comment #1
mavimo commentedYou're right, taxonomy term entity don't have view callback, so it's not possible use hook_entity_view(). I'm working on a patch.
Thanks for report.
Comment #2
mavimo commentedCan you try to replace, in content_entity_field the line:
with
and give me feedback?
Comment #3
spacegoat1701 commentedAfter making the change, I get this error:
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7562 of /www/catodev2/htdocs/includes/common.inc).
Comment #4
spacegoat1701 commentedI got it to work by reverting back to hook_entity_view and then adding this underneath for taxonomy terms:
Comment #5
mavimo commentedThanks for feedback, I'll try to uniform eentity view managament without split between entity types
Comment #6
spacegoat1701 commentedThat might not be possible until Drupal 7.17, when hook_entity_view is supposed to be added to taxonomy terms.
Comment #7
mavimo commented@SpaceGoat1701: tks for information.
Comment #8
mavimo commentedTitle chaged to match with report
Comment #9
mavimo commentedCommited in 7.x-1.x branch
Comment #11
mavimo commentedhook_entity_view added in Drupal 7.17 in accord to:
#1067120: Missing hook_taxonomy_term_view() or hook_entity_view() when viewing a term so we can remove "temporary code" from module.
Comment #13
doublejosh commentedtitle typo
Comment #14
doublejosh commentedtypo